:root {
  --bg: #071014;
  --bg-soft: #0d1a21;
  --panel: rgba(8, 19, 24, 0.9);
  --panel-strong: rgba(11, 24, 31, 0.97);
  --panel-muted: rgba(255, 255, 255, 0.04);
  --line: rgba(118, 191, 187, 0.18);
  --line-strong: rgba(118, 191, 187, 0.34);
  --ink: #eef9f8;
  --muted: #96b7b4;
  --accent: #f2b84b;
  --accent-soft: #ffd476;
  --player: #69d4ff;
  --enemy: #ff8666;
  --danger: #ff6b57;
  --ok: #63d98c;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 24px;
  --mobile-control-radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

.field.hidden {
  display: none !important;
}

body {
  font-family: "Aptos", Bahnschrift, "Segoe UI Variable", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 212, 118, 0.14), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(105, 212, 255, 0.12), transparent 32%),
    linear-gradient(145deg, #050a0d, #09161b 52%, #071015);
  -webkit-tap-highlight-color: transparent;
  caret-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

body.drawer-open {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

body.control-studio-open {
  overflow: hidden;
}

body.border-picker-open {
  overflow: hidden;
}

body.friend-profile-open {
  overflow: hidden;
}

body.stash-detail-open {
  overflow: hidden;
}

img,
svg,
canvas,
[data-protected-media="1"],
.avatar-frame,
.profile-border-overlay,
.board-image {
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

img,
svg,
canvas,
.profile-border-overlay,
.board-image,
[data-protected-media="1"] {
  pointer-events: none;
}

button,
input,
select {
  font: inherit;
}

input,
select,
textarea,
[contenteditable="true"] {
  caret-color: auto;
  user-select: text;
  -webkit-user-select: text;
}

button {
  border: 0;
  border-radius: 16px;
  padding: 12px 14px;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, color 120ms ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  padding: 12px 14px;
}

select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  padding: 12px 14px;
  color-scheme: dark;
}

select option {
  background: #0d1a21;
  color: var(--ink);
}

select option:checked {
  background: #274047;
  color: #ffffff;
}

select option:disabled {
  background: #0d1a21;
  color: #748d8a;
}

.app-shell {
  min-height: 100vh;
  padding: 24px;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.topbar,
.panel,
.hero,
.board-wrap,
.shell-drawer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.topbar {
  padding: 18px 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(10, 21, 27, 0.98), rgba(8, 17, 22, 0.92)),
    radial-gradient(circle at top, rgba(255, 212, 118, 0.09), transparent 40%);
}

.brand-block h1,
.hero h2,
.panel h2,
.panel h3,
.shell-drawer h2,
.shell-drawer h3 {
  margin: 0;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--accent-soft);
}

.lede,
.status,
.muted {
  color: var(--muted);
}

.icon-button {
  width: 48px;
  height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 1.2rem;
}

.menu-toggle-button {
  gap: 5px;
}

.menu-toggle-button span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.icon-button.quiet {
  width: 42px;
  height: 42px;
  font-size: 1rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 14px;
}

.notification-hub {
  position: relative;
}

.notification-toggle {
  position: relative;
}

.notification-toggle.active {
  border-color: rgba(255, 212, 118, 0.42);
  background: linear-gradient(135deg, rgba(255, 212, 118, 0.14), rgba(105, 212, 255, 0.08));
}

.icon-svg {
  width: 20px;
  height: 20px;
}

.notification-count {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 700;
}

.notification-count.active {
  background: var(--danger);
  color: #fff4f1;
  border-color: rgba(255, 107, 87, 0.6);
}

.notification-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 48px));
  max-width: calc(100vw - 24px);
  padding: 12px;
  display: grid;
  gap: 10px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(8, 19, 24, 0.98);
  box-shadow: var(--shadow);
  z-index: 15;
}

.notification-panel[hidden] {
  display: none;
}

.notification-empty {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.viewer-card,
.drawer-profile {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel-muted);
  min-width: 240px;
}

.avatar-frame {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  min-width: 0;
  overflow: visible;
}

.viewer-avatar-frame {
  width: 58px;
  height: 58px;
  --profile-border-size: calc(100% + 50px);
}

.viewer-avatar {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

.profile-border-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--profile-border-size, calc(100% + 16px));
  height: var(--profile-border-size, calc(100% + 16px));
  transform: translate(-50%, -50%);
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.28));
  z-index: 2;
}

.profile-border-overlay:not(.active) {
  display: none;
}

.viewer-card h2,
.drawer-profile h3 {
  margin: 0;
  font-size: 1.05rem;
}

.viewer-card > div:last-child,
.drawer-profile > div:last-child {
  min-width: 0;
}

.viewer-card h2,
.viewer-card .muted,
.drawer-profile h3,
.drawer-profile .muted {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(1, 5, 7, 0.68);
  backdrop-filter: blur(4px);
  z-index: 20;
}

.shell-drawer {
  position: fixed;
  top: 18px;
  left: 18px;
  bottom: 18px;
  width: min(320px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  padding: 18px;
  z-index: 30;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 18px;
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: none;
  background:
    linear-gradient(180deg, rgba(10, 21, 27, 0.98), rgba(8, 17, 22, 0.96)),
    radial-gradient(circle at top, rgba(255, 212, 118, 0.09), transparent 42%);
  transform: translateX(calc(-100% - 28px));
  transition: transform 160ms ease;
}

body.drawer-open .shell-drawer {
  transform: translateX(0);
}

.control-studio-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(1, 5, 7, 0.76);
  backdrop-filter: blur(10px);
  z-index: 40;
}

.border-picker-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(1, 5, 7, 0.74);
  backdrop-filter: blur(8px);
  z-index: 40;
}

.friend-profile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(1, 5, 7, 0.72);
  backdrop-filter: blur(8px);
  z-index: 40;
}

.stash-detail-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(1, 5, 7, 0.6);
  backdrop-filter: blur(8px);
  z-index: 42;
}

.control-studio {
  position: fixed;
  inset: 18px;
  z-index: 45;
  display: grid;
  place-items: center;
}

.border-picker-modal {
  position: fixed;
  inset: 18px;
  z-index: 45;
  display: grid;
  place-items: center;
}

.friend-profile-modal {
  position: fixed;
  inset: 18px;
  z-index: 45;
  display: grid;
  place-items: center;
}

.stash-detail-modal {
  position: fixed;
  inset: 18px;
  z-index: 47;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.control-studio[hidden],
.control-studio-backdrop[hidden],
.border-picker-modal[hidden],
.border-picker-backdrop[hidden],
.friend-profile-modal[hidden],
.friend-profile-backdrop[hidden],
.stash-detail-modal[hidden],
.stash-detail-backdrop[hidden] {
  display: none !important;
}

.control-studio-card {
  width: min(1120px, 100%);
  max-height: calc(100vh - 36px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(10, 21, 27, 0.99), rgba(8, 17, 22, 0.96)),
    radial-gradient(circle at top, rgba(255, 212, 118, 0.08), transparent 44%);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.friend-profile-card {
  width: min(780px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(10, 21, 27, 0.99), rgba(8, 17, 22, 0.96)),
    radial-gradient(circle at top, rgba(105, 212, 255, 0.1), transparent 42%);
  box-shadow: var(--shadow);
}

.stash-detail-card {
  width: min(480px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 212, 118, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(14, 29, 36, 0.98), rgba(8, 18, 23, 0.99));
  box-shadow: var(--shadow);
  pointer-events: auto;
}

.border-picker-card {
  width: min(820px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(10, 21, 27, 0.99), rgba(8, 17, 22, 0.96)),
    radial-gradient(circle at top, rgba(255, 212, 118, 0.08), transparent 44%);
  box-shadow: var(--shadow);
}

.control-studio-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.friend-profile-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stash-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.border-picker-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.control-studio-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 24px 18px;
}

.control-studio-body {
  overflow: auto;
  padding: 0 24px 24px;
}

.friend-profile-body {
  padding: 22px 24px 24px;
  display: grid;
  gap: 18px;
}

.stash-detail-body {
  padding: 18px 20px 20px;
  display: grid;
  gap: 14px;
}

.stash-detail-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.stash-detail-icon-wrap {
  position: relative;
  min-height: 220px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  border: 1px solid rgba(255, 212, 118, 0.22);
  background:
    radial-gradient(circle at top, rgba(255, 212, 118, 0.15), transparent 58%),
    rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.stash-detail-icon-wrap .stash-item-icon,
.stash-detail-icon-wrap .stash-item-fallback-icon {
  width: min(100%, 520px);
  height: auto;
  max-height: 260px;
  object-fit: contain;
}

.stash-detail-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.stash-detail-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.stash-detail-title-row h3 {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.stash-rarity-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 212, 118, 0.32);
  color: var(--accent-soft);
  background: rgba(255, 212, 118, 0.08);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: capitalize;
}

.stash-rarity-badge > span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 212, 118, 0.14);
  color: var(--accent-soft);
  font-size: 0.68rem;
}

.stash-detail-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.stash-detail-effects {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.stash-detail-effects span {
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid rgba(152, 194, 190, 0.22);
  border-radius: 8px;
  background: rgba(105, 212, 255, 0.08);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.stash-detail-meta,
.stash-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stash-detail-actions button {
  width: 100%;
}

.stash-equip-panel {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 212, 118, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 212, 118, 0.1), transparent 46%),
    rgba(255, 255, 255, 0.04);
}

.stash-equip-panel strong {
  display: block;
  margin-top: 4px;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.stash-equip-controls {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.stash-equip-controls label {
  min-width: 92px;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stash-equip-controls input {
  width: 92px;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(4, 12, 16, 0.72);
  color: var(--ink);
  padding: 8px 10px;
  font: inherit;
}

.stash-equip-controls button {
  min-height: 42px;
}

.stash-gear-set-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(105, 212, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(105, 212, 255, 0.12), transparent 52%),
    rgba(255, 255, 255, 0.04);
}

.stash-gear-set-head,
.stash-gear-set-meta,
.stash-gear-set-talent {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stash-gear-set-head {
  justify-content: space-between;
}

.stash-gear-set-head strong,
.stash-gear-set-talent strong {
  display: block;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.stash-gear-set-meta span,
.stash-gear-set-talent span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.stash-gear-set-tiers {
  display: grid;
  gap: 6px;
}

.stash-gear-set-tiers div {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.12);
}

.stash-gear-set-tiers strong {
  color: var(--accent-soft);
  font-size: 0.78rem;
}

.stash-gear-set-tiers span {
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.stash-equip-message {
  flex: 1 0 100%;
}

.attachment-config-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(105, 212, 255, 0.24);
  background: rgba(105, 212, 255, 0.055);
}

.attachment-config-head,
.attachment-action-row,
.attachment-control-grid {
  display: grid;
  gap: 10px;
}

.attachment-config-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.attachment-config-head h4 {
  margin: 0;
}

.attachment-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}

.attachment-slot-button {
  min-width: 0;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 4px 8px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
  cursor: pointer;
}

.attachment-slot-button:hover,
.attachment-slot-button:focus-visible,
.attachment-slot-button.selected {
  border-color: rgba(255, 212, 118, 0.56);
  background: rgba(255, 212, 118, 0.08);
}

.attachment-slot-button span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--bg);
  background: var(--accent-soft);
  font-size: 0.72rem;
  font-weight: 900;
}

.attachment-slot-button strong,
.attachment-slot-button em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-slot-button strong {
  font-size: 0.82rem;
}

.attachment-slot-button em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.attachment-slot-button.filled em {
  color: var(--accent-soft);
}

.attachment-current-card {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.16);
}

.attachment-current-card span {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.attachment-current-card strong {
  overflow-wrap: anywhere;
}

.attachment-current-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.attachment-picked-line {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.3;
}

.attachment-picked-line strong {
  color: var(--ink);
}

.attachment-control-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.attachment-action-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.attachment-action-row button {
  min-width: 0;
  width: 100%;
}

.attachment-message {
  margin: 0;
  color: var(--accent-soft);
  line-height: 1.35;
}

.attachment-message.error {
  color: var(--danger);
}

.stash-detail-groups {
  display: grid;
  gap: 12px;
}

.stash-detail-drop-rates {
  gap: 0;
}

.stash-detail-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.stash-detail-group h4 {
  margin: 0;
  color: var(--accent-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.stash-detail-rows {
  display: grid;
  gap: 8px;
}

.stash-detail-row {
  display: grid;
  grid-template-columns: minmax(88px, 0.8fr) minmax(0, 1.2fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 0.9rem;
}

.stash-detail-label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  overflow-wrap: anywhere;
}

.stash-detail-stat-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.stash-detail-row strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.border-picker-body {
  padding: 22px 24px 24px;
  display: grid;
  gap: 18px;
}

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

.drawer-nav {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 0;
  overflow: hidden;
}

body.drawer-open .mobile-dock,
body.drawer-open .menu-toggle-button {
  display: none !important;
}

.nav-button {
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border: 1px solid var(--line);
}

.nav-button.active {
  color: var(--ink);
  border-color: rgba(255, 212, 118, 0.4);
  background: linear-gradient(135deg, rgba(255, 212, 118, 0.18), rgba(105, 212, 255, 0.08));
}

.mobile-dock {
  display: none;
}

.views {
  display: block;
  min-width: 0;
}

.view {
  display: none;
}

.view.active {
  display: block;
  min-width: 0;
}

.panel {
  padding: 18px;
  min-width: 0;
}

.clan-hub-root {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  min-width: 0;
}

.clan-hub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.clan-hub-head h2 {
  margin: 0;
}

.clan-hub-grid,
.clan-list-grid {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.clan-hub-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.clan-list-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.clan-create-panel,
.clan-viewer-panel,
.clan-empty-panel {
  min-width: 0;
}

.clan-create-toggle {
  width: 100%;
  justify-content: space-between;
  min-height: 54px;
  text-align: left;
}

.clan-create-toggle > span:first-child {
  display: grid;
  gap: 2px;
}

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

.clan-create-grid label,
.clan-card-copy {
  min-width: 0;
}

.clan-create-wide {
  grid-column: 1 / -1;
}

.clan-create-grid textarea {
  width: 100%;
  resize: vertical;
}

.clan-card,
.clan-viewer-panel {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
}

.clan-card-image {
  width: 78px;
  height: 78px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.16);
}

.clan-badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 1px solid rgba(255, 212, 118, 0.32);
  color: #ffe09a;
  background:
    linear-gradient(135deg, rgba(255, 212, 118, 0.16), rgba(99, 215, 183, 0.12)),
    rgba(5, 13, 17, 0.84);
  font-weight: 900;
  letter-spacing: 0;
}

.clan-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.clan-card h4,
.clan-viewer-panel h3,
.clan-card p,
.clan-viewer-panel p {
  margin: 0;
}

.clan-card p,
.clan-viewer-panel p {
  color: var(--muted);
}

.clan-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.clan-card-meta span {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,0.035);
  font-size: 0.78rem;
}

.clan-war-shell {
  min-height: calc(100dvh - 148px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(4, 8, 12, 0.98), rgba(8, 18, 24, 0.96) 54%, rgba(15, 20, 22, 0.98)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 96px);
  box-shadow: var(--shadow);
}

.clan-war-stage {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 34%),
    linear-gradient(145deg, #03070b, #071119 48%, #101512);
}

.clan-galaxy-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,0.78) 0 1px, transparent 1.4px),
    radial-gradient(circle at 72% 28%, rgba(105,212,255,0.72) 0 1px, transparent 1.5px),
    radial-gradient(circle at 34% 76%, rgba(255,212,118,0.6) 0 1px, transparent 1.4px),
    linear-gradient(135deg, rgba(2,6,12,0.98), rgba(7,18,24,0.94) 54%, rgba(14,10,20,0.96));
  background-size: 140px 120px, 190px 160px, 220px 180px, 100% 100%;
  opacity: 0.92;
  pointer-events: none;
}

.clan-war-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255,255,255,0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 78%, transparent);
  pointer-events: none;
}

.clan-war-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: auto;
  touch-action: none;
}

.clan-galaxy-planets {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: auto;
}

.clan-map-planet-node {
  position: absolute;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: clamp(174px, 22vw, 238px);
  min-height: 70px;
  padding: 9px 11px 9px 9px;
  border: 1px solid color-mix(in srgb, var(--planet-accent, #69d4ff) 54%, rgba(255,255,255,0.14));
  border-radius: 8px;
  background: rgba(5, 13, 18, 0.78);
  color: var(--ink);
  text-align: left;
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 30px rgba(0,0,0,0.34), 0 0 28px color-mix(in srgb, var(--planet-accent, #69d4ff) 18%, transparent);
}

.clan-map-planet-node:hover,
.clan-map-planet-node:focus-visible,
.clan-map-planet-node.active {
  border-color: color-mix(in srgb, var(--planet-accent, #69d4ff) 82%, #ffd476);
  background: rgba(8, 22, 28, 0.9);
}

.clan-map-planet-node img {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: inset -12px -9px 18px rgba(0,0,0,0.55);
}

.clan-map-planet-node span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.clan-map-planet-node strong,
.clan-map-planet-node small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clan-map-planet-node small {
  color: var(--muted);
}

.clan-war-shell.galaxy-mode .clan-war-canvas {
  opacity: 0.34;
  pointer-events: none;
}

.clan-war-shell.planet-mode .clan-war-canvas {
  opacity: 1;
}

.clan-war-shell.planet-arriving .clan-war-canvas {
  transition: opacity 260ms ease, transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1.015);
}

.clan-war-fallback-planet {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: min(58vw, 560px);
  max-width: 82%;
  aspect-ratio: 1;
  border-radius: 999px;
  object-fit: cover;
  opacity: 0.42;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 60px rgba(99, 217, 140, 0.18));
  pointer-events: none;
}

.clan-war-shell.map-ready .clan-war-fallback-planet {
  opacity: 0.16;
}

.clan-war-status {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 5;
  padding: 8px 11px;
  border: 1px solid rgba(255, 212, 118, 0.28);
  border-radius: 999px;
  background: rgba(8, 19, 24, 0.76);
  color: var(--accent-soft);
  font-size: 0.76rem;
  font-weight: 900;
}

.clan-war-shell.map-ready .clan-war-status {
  display: none;
}

.clan-war-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.clan-location-marker {
  position: absolute;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 212, 118, 0.72);
  background: rgba(9, 20, 25, 0.74);
  color: #ffd476;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 18px rgba(255, 212, 118, 0.24);
  pointer-events: auto;
  z-index: 3;
}

.clan-location-marker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
}

.clan-location-marker.active {
  border-color: rgba(105, 212, 255, 0.9);
  color: #69d4ff;
  background: rgba(8, 28, 35, 0.86);
}

.clan-location-marker[hidden] {
  display: none;
}

.clan-war-vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.36), transparent 24%, transparent 72%, rgba(0,0,0,0.46)),
    linear-gradient(0deg, rgba(0,0,0,0.38), transparent 22%, transparent 76%, rgba(0,0,0,0.2));
  pointer-events: none;
}

.clan-war-panel {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 22px;
  border-left: 1px solid var(--line);
  background: rgba(8, 19, 24, 0.94);
  backdrop-filter: blur(16px);
}

.clan-war-title h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
}

.clan-galaxy-back-button {
  width: 100%;
  min-height: 40px;
}

.clan-galaxy-back-button:disabled {
  opacity: 0.54;
  cursor: default;
}

.clan-planet-rail,
.clan-location-list {
  display: grid;
  gap: 10px;
}

.clan-planet-button,
.clan-location-button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--ink);
  text-align: left;
}

.clan-planet-button.active,
.clan-location-button.active {
  border-color: rgba(255, 212, 118, 0.5);
  background: rgba(255, 212, 118, 0.1);
}

.clan-planet-thumb {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: inset -10px -8px 18px rgba(0,0,0,0.5);
}

.clan-planet-button strong,
.clan-location-button strong,
.clan-control-card strong,
.clan-location-card h3 {
  margin: 0;
}

.clan-planet-button span,
.clan-location-button span,
.clan-control-card span,
.clan-location-card p,
.clan-location-card small {
  color: var(--muted);
}

.clan-planet-button small,
.clan-location-button small {
  justify-self: end;
  color: var(--accent-soft);
}

.clan-control-card,
.clan-location-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
}

.clan-control-card strong {
  font-size: 1.65rem;
}

.clan-control-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.clan-control-track span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #63d98c, #ffd476);
}

.clan-location-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.clan-location-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.clan-location-meta span {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 0.82rem;
}

.clan-attack-button {
  width: 100%;
  min-height: 48px;
}

.clan-hub-root {
  margin-top: 18px;
}

.clan-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.clan-command-main,
.clan-command-side {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.clan-command-home {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.clan-command-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 14px;
  align-items: stretch;
  min-width: 0;
}

.clan-workshop-mode {
  display: grid;
  min-width: 0;
}

.clan-roster-panel,
.clan-treasury-panel,
.clan-chat-panel,
.clan-invite-panel,
.clan-members-panel,
.clan-roles-panel,
.clan-settings-panel,
.clan-activity-panel,
.clan-workshop-panel {
  min-width: 0;
}

.clan-hub-root button {
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.clan-hub-root h2,
.clan-hub-root h3,
.clan-hub-root h4,
.clan-hub-root p,
.clan-hub-root strong,
.clan-hub-root span,
.clan-hub-root small,
.clan-hub-root em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.clan-home-menu {
  display: grid;
  gap: 10px;
}

.clan-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 8px;
  min-width: 0;
}

.clan-menu-button {
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 10px;
  text-align: left;
  color: var(--text);
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
  cursor: pointer;
}

.clan-menu-button.active {
  border-color: rgba(255, 212, 118, 0.68);
  background: rgba(255, 212, 118, 0.12);
}

.clan-menu-button.active strong {
  color: var(--gold);
}

.clan-menu-button span {
  color: var(--muted);
  font-size: 0.78rem;
}

.clan-menu-button.active span {
  color: var(--text);
}

.clan-roster-panel .clan-list-grid {
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
  grid-template-columns: 1fr;
}

.clan-create-grid input,
.clan-create-grid textarea,
.clan-create-grid select,
.clan-deposit-row input,
.clan-deposit-row select,
.clan-member-card select,
.clan-settings-grid input,
.clan-settings-grid textarea,
.clan-settings-grid select,
.clan-transfer-row select,
.clan-role-editor input,
.clan-chat-compose input,
.clan-invite-compose input,
.clan-workshop-save-row input,
.clan-workshop-source-row select {
  width: 100%;
  color: var(--ink);
  background: rgba(5, 13, 17, 0.74);
  border: 1px solid var(--line);
}

.clan-create-grid textarea,
.clan-chat-compose input {
  color: var(--ink);
}

.clan-image-choice-row {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.clan-image-choice {
  width: 58px;
  height: 58px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
}

.clan-image-choice.active {
  border-color: rgba(255, 212, 118, 0.72);
  box-shadow: 0 0 0 2px rgba(255, 212, 118, 0.16);
}

.clan-image-choice img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

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

.clan-treasury-items,
.clan-member-list,
.clan-role-list,
.clan-role-editor,
.clan-settings-grid,
.clan-activity-list {
  display: grid;
  gap: 8px;
}

.clan-treasury-item,
.clan-member-card,
.clan-role-card,
.clan-activity-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
}

.clan-treasury-item {
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
}

.clan-treasury-item span,
.clan-member-card span,
.clan-role-card span,
.clan-activity-item span,
.clan-settings-grid label span {
  color: var(--muted);
  font-size: 0.82rem;
}

.clan-treasury-item em {
  color: var(--ink);
  font-style: normal;
}

.clan-member-card {
  grid-template-columns: minmax(0, 1fr) minmax(96px, 132px) auto;
  align-items: center;
}

.clan-role-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.clan-settings-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.clan-settings-grid label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.clan-settings-wide {
  grid-column: 1 / -1;
}

.clan-transfer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.clan-activity-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

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

.clan-permission-grid label {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.clan-vault-balance {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
}

.clan-workshop-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1.15fr) minmax(260px, 0.85fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.clan-workshop-panel.full {
  display: grid;
  gap: 12px;
  min-height: min(78dvh, 900px);
}

.clan-workshop-head-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.clan-workshop-panel.full .clan-workshop-layout {
  grid-template-columns: minmax(520px, 1.45fr) minmax(320px, 0.55fr);
  align-items: stretch;
}

.clan-workshop-panel.full .vehicle-workfloor {
  min-height: min(62dvh, 660px);
}

.clan-workshop-floor {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02)),
    repeating-linear-gradient(90deg, rgba(118,191,187,0.08) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(0deg, rgba(118,191,187,0.06) 0 1px, transparent 1px 32px);
}

.vehicle-workfloor {
  min-height: 360px;
  aspect-ratio: 16 / 11;
  display: grid;
  place-items: stretch;
}

.vehicle-frame-shell {
  display: grid;
  grid-template-columns: minmax(86px, 1fr) minmax(120px, 1.25fr) minmax(86px, 1fr);
  grid-template-rows: minmax(58px, 0.65fr) minmax(58px, 0.75fr) minmax(76px, 1fr) minmax(58px, 0.75fr) minmax(58px, 0.65fr);
  grid-template-areas:
    "turret turret turret"
    "left_armor front_armor right_armor"
    "left_armor frame right_armor"
    "tracks engine fuel_tank"
    ". rear_armor .";
  gap: 8px;
  min-width: 0;
  min-height: 0;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(4, 10, 13, 0.62);
}

.vehicle-frame-name,
.vehicle-slot {
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.045);
}

.vehicle-frame-name {
  grid-area: frame;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 10px;
  text-align: center;
}

.vehicle-frame-name span,
.vehicle-slot span,
.clan-workshop-stats span,
.clan-workshop-part-card em,
.clan-workshop-blueprint-card span,
.clan-workshop-vehicle-card span {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
}

.vehicle-frame-name strong,
.vehicle-slot strong {
  font-size: 0.9rem;
  line-height: 1.15;
}

.vehicle-frame-name em,
.vehicle-slot em {
  color: var(--accent-soft);
  font-size: 0.72rem;
  font-style: normal;
}

.vehicle-slot {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}

.vehicle-slot button {
  min-height: 0;
  width: 100%;
  border-radius: 0;
  background: transparent;
}

.vehicle-slot > button:first-child {
  display: grid;
  gap: 3px;
  place-items: center;
  padding: 8px;
}

.vehicle-slot.empty > button:first-child {
  opacity: 0.76;
}

.vehicle-slot.selected {
  border-color: rgba(255, 212, 118, 0.72);
  box-shadow: 0 0 0 2px rgba(255, 212, 118, 0.12);
}

.vehicle-slot-remove {
  min-height: 28px;
  padding: 6px;
  color: var(--danger);
  border-top: 1px solid var(--line);
  background: rgba(255, 107, 87, 0.08) !important;
}

.slot-turret { grid-area: turret; }
.slot-front_armor { grid-area: front_armor; }
.slot-left_armor { grid-area: left_armor; }
.slot-right_armor { grid-area: right_armor; }
.slot-rear_armor { grid-area: rear_armor; }
.slot-engine { grid-area: engine; }
.slot-fuel_tank { grid-area: fuel_tank; }
.slot-tracks { grid-area: tracks; }

.clan-workshop-shelf,
.clan-workshop-part-group,
.clan-workshop-blueprints {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.clan-workshop-shelf {
  align-content: start;
}

.clan-workshop-category-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.clan-workshop-category {
  min-height: 34px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.clan-workshop-category.active {
  border-color: rgba(255, 212, 118, 0.68);
  background: rgba(255, 212, 118, 0.14);
  color: var(--ink);
}

.clan-workshop-source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.clan-workshop-source-row span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255,255,255,0.035);
  font-size: 0.78rem;
}

.clan-workshop-part-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  max-height: min(48dvh, 470px);
  overflow: auto;
  padding-right: 3px;
}

.clan-workshop-part-card {
  display: grid;
  gap: 6px;
  align-content: start;
  text-align: left;
  min-height: 132px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
}

.clan-workshop-part-card:disabled {
  opacity: 0.54;
  cursor: not-allowed;
}

.clan-workshop-cost {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.clan-workshop-cost span {
  padding: 3px 6px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
}

.clan-workshop-stats {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.clan-workshop-stats > div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
}

.clan-workshop-readiness.ready {
  border-color: rgba(99, 217, 140, 0.45);
}

.clan-workshop-readiness.blocked {
  border-color: rgba(255, 212, 118, 0.36);
}

.clan-workshop-save-row,
.clan-workshop-blueprint-card,
.clan-workshop-vehicle-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.clan-workshop-save-row {
  margin-top: 12px;
}

.clan-workshop-blueprint-list,
.clan-workshop-vehicle-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.clan-workshop-blueprint-card,
.clan-workshop-vehicle-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
}

.clan-vault-balance span,
.clan-feed-item span {
  color: var(--muted);
  font-size: 0.82rem;
}

.clan-vault-balance strong {
  font-size: 1.3rem;
}

.clan-deposit-row,
.clan-chat-compose,
.clan-invite-compose {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
  min-width: 0;
}

.clan-chat-compose,
.clan-invite-compose {
  grid-template-columns: minmax(0, 1fr) auto;
}

.clan-feed-list,
.clan-chat-log,
.clan-invite-list,
.clan-sent-invites {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}

.clan-feed-item,
.clan-invite-card,
.clan-sent-invite {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
}

.clan-invite-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.clan-invite-card span,
.clan-sent-invite span {
  color: var(--muted);
  font-size: 0.82rem;
}

.clan-invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.clan-sent-invite {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.clan-sent-invites {
  max-height: 160px;
}

.clan-chat-panel.global-chat-shell {
  min-height: 420px;
}

.clan-chat-panel .global-chat-messages {
  min-height: 260px;
  max-height: min(48dvh, 520px);
}

.clan-chat-panel .global-chat-copy {
  display: block;
}

.clan-chat-panel .global-chat-topline {
  display: inline-flex;
}

.clan-chat-panel .global-chat-copy p {
  color: var(--ink);
}

.clan-war-shell {
  margin-bottom: 18px;
  min-height: 580px;
  height: min(72dvh, 760px);
  border-radius: 8px;
}

.clan-war-stage {
  min-height: 580px;
}

.clan-war-panel {
  border-radius: 0;
  overflow: auto;
}

.clan-planet-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  min-height: 82px;
}

.clan-planet-button {
  min-width: 178px;
}

.clan-location-list {
  max-height: 180px;
  overflow: auto;
}

.clan-control-card,
.clan-location-card {
  border-radius: 8px;
}

.clan-war-panel,
.clan-planet-rail,
.clan-location-list,
.clan-roster-panel .clan-list-grid,
.clan-feed-list,
.clan-chat-log,
.clan-invite-list,
.clan-sent-invites {
  scrollbar-color: rgba(105, 212, 255, 0.42) rgba(255,255,255,0.05);
  scrollbar-width: thin;
}

.clan-war-panel::-webkit-scrollbar,
.clan-planet-rail::-webkit-scrollbar,
.clan-location-list::-webkit-scrollbar,
.clan-roster-panel .clan-list-grid::-webkit-scrollbar,
.clan-feed-list::-webkit-scrollbar,
.clan-chat-log::-webkit-scrollbar,
.clan-invite-list::-webkit-scrollbar,
.clan-sent-invites::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.clan-war-panel::-webkit-scrollbar-track,
.clan-planet-rail::-webkit-scrollbar-track,
.clan-location-list::-webkit-scrollbar-track,
.clan-roster-panel .clan-list-grid::-webkit-scrollbar-track,
.clan-feed-list::-webkit-scrollbar-track,
.clan-chat-log::-webkit-scrollbar-track,
.clan-invite-list::-webkit-scrollbar-track,
.clan-sent-invites::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
}

.clan-war-panel::-webkit-scrollbar-thumb,
.clan-planet-rail::-webkit-scrollbar-thumb,
.clan-location-list::-webkit-scrollbar-thumb,
.clan-roster-panel .clan-list-grid::-webkit-scrollbar-thumb,
.clan-workshop-part-list::-webkit-scrollbar-thumb,
.clan-feed-list::-webkit-scrollbar-thumb,
.clan-chat-log::-webkit-scrollbar-thumb,
.clan-invite-list::-webkit-scrollbar-thumb,
.clan-sent-invites::-webkit-scrollbar-thumb {
  background: rgba(105, 212, 255, 0.42);
  border-radius: 8px;
}

@media (max-width: 1000px) {
  .clan-command-grid,
  .clan-command-top {
    grid-template-columns: 1fr;
  }

  .clan-workshop-layout,
  .clan-workshop-panel.full .clan-workshop-layout,
  .clan-workshop-stats {
    grid-template-columns: 1fr;
  }

  .clan-roster-panel .clan-list-grid {
    max-height: none;
  }
}

.hero-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.home-hero {
  min-height: 168px;
  display: grid;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(14, 29, 36, 0.96), rgba(7, 16, 20, 0.96)),
    radial-gradient(circle at top right, rgba(105, 212, 255, 0.08), transparent 42%);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary {
  background: linear-gradient(135deg, #ffd476, #f2b84b);
  color: #201407;
}

.secondary,
.ability-button,
.entity-chip,
.game-card,
.room-card,
.stack-card,
.friend-card,
.notification-card,
.friend-menu-button,
.friend-menu-item,
.admin-player-row,
.admin-category-card,
.admin-grant-card {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border: 1px solid var(--line);
}

.danger-button {
  border-color: rgba(255, 107, 87, 0.38);
  color: #ffd0c7;
  background:
    linear-gradient(135deg, rgba(255, 107, 87, 0.14), rgba(255, 107, 87, 0.04)),
    rgba(255, 255, 255, 0.04);
}

.danger-button:hover:not(:disabled) {
  border-color: rgba(255, 107, 87, 0.62);
  box-shadow: 0 0 0 4px rgba(255, 107, 87, 0.12);
}

.home-grid,
.split-layout {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

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

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

.split-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.metric-grid,
.settings-grid {
  display: grid;
  gap: 12px;
}

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

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

.settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.login-key-panel {
  margin-top: 16px;
}

.login-key-card {
  display: grid;
  gap: 10px;
  align-items: start;
}

.login-key-card.compact {
  margin-top: 10px;
}

.login-key-upload-button {
  display: inline-flex;
  width: fit-content;
  cursor: pointer;
}

.login-key-upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.metric-card,
.stack-card,
.friend-card,
.stash-metric-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.metric-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.05rem;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.daily-status {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.daily-claim-button {
  width: 100%;
  min-height: 34px;
  margin-top: 10px;
  padding: 7px 10px;
  border-color: rgba(61, 214, 122, 0.46);
  background: rgba(61, 214, 122, 0.12);
  color: #c8ffd7;
  font-size: 0.78rem;
  line-height: 1.1;
  white-space: normal;
}

.daily-claim-button.ready {
  border-color: rgba(81, 239, 139, 0.8);
  background: linear-gradient(135deg, #34d06f, #74efa1);
  color: #07150b;
}

.daily-claim-button:disabled {
  cursor: default;
}

.reward-pop-layer,
.daily-reward-bubbles {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 90;
  pointer-events: none;
  overflow: visible;
  contain: layout paint;
}

.daily-reward-bubble,
.reward-pop-bubble {
  position: absolute;
  width: 166px;
  min-height: 64px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 12px 9px 9px;
  border: 1px solid rgba(255, 212, 118, 0.52);
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.32), transparent 28px),
    rgba(10, 23, 28, 0.94);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36), 0 0 28px rgba(255, 212, 118, 0.16);
  color: var(--ink);
  animation: dailyRewardBubbleFloat 6.2s cubic-bezier(.2, .86, .24, 1) forwards;
  transform-origin: center;
  will-change: transform, opacity;
}

.reward-pop-bubble.openable {
  animation-name: rewardOpenableBurst;
}

.daily-reward-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  color: var(--accent-soft);
  font-weight: 900;
}

.daily-reward-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.daily-reward-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.daily-reward-copy strong,
.daily-reward-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-reward-copy strong {
  font-size: 0.82rem;
  line-height: 1.12;
}

.daily-reward-copy small {
  color: var(--accent-soft);
  font-weight: 800;
  font-size: 0.78rem;
}

@keyframes dailyRewardBubbleFloat {
  0% {
    opacity: 0;
    transform: translate3d(0, 30px, 0) scale(0.72);
  }
  10% {
    opacity: 1;
    transform: translate3d(0, -8px, 0) scale(1.05);
  }
  24% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  76% {
    opacity: 1;
    transform: translate3d(calc(var(--bubble-dx, 18px) * .36), calc(var(--bubble-dy, -96px) * .36), 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--bubble-dx, 18px), var(--bubble-dy, -96px), 0) scale(0.18);
  }
}

@keyframes rewardOpenableBurst {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.18) rotate(-4deg);
  }
  8% {
    opacity: 1;
    transform: translate3d(calc(var(--burst-x, 0px) * .82), calc(var(--burst-y, -120px) * .82), 0) scale(1.12) rotate(3deg);
  }
  17% {
    opacity: 1;
    transform: translate3d(var(--burst-x, 0px), var(--burst-y, -120px), 0) scale(1.02) rotate(0deg);
  }
  32% {
    opacity: 1;
    transform: translate3d(calc(var(--float-x, 0px) * .88), calc(var(--float-y, -240px) * .88), 0) scale(1.04);
  }
  78% {
    opacity: 1;
    transform: translate3d(var(--float-x, 0px), var(--float-y, -240px), 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--bubble-dx, 0px), var(--bubble-dy, -300px), 0) scale(0.12);
  }
}

.reward-stardust {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background:
    radial-gradient(circle, #fff 0 18%, #fff2a8 19% 46%, rgba(255, 212, 118, 0.16) 47% 68%, transparent 69%);
  box-shadow: 0 0 20px rgba(255, 220, 112, 0.94), 0 0 36px rgba(105, 212, 255, 0.24);
  transform: translate3d(-50%, -50%, 0);
  opacity: 0;
  animation: rewardStardustPop 1.45s cubic-bezier(.18, .82, .14, 1) forwards;
}

.reward-stardust::after {
  content: "";
  position: absolute;
  inset: -9px;
  background:
    linear-gradient(90deg, transparent 45%, rgba(255, 255, 255, 0.98) 45% 55%, transparent 55%),
    linear-gradient(0deg, transparent 45%, rgba(255, 255, 255, 0.98) 45% 55%, transparent 55%);
  transform: rotate(45deg);
}

.reward-stardust.large {
  width: 14px;
  height: 14px;
  background: #ffffff;
}

.reward-stardust.burst {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 16%, #ffe07f 17% 38%, rgba(255, 212, 118, 0.22) 39% 62%, transparent 63%);
}

@keyframes rewardStardustPop {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.12) rotate(0deg);
  }
  14% {
    opacity: 1;
    transform: translate3d(calc(var(--dust-x, 0px) * .22 - 50%), calc(var(--dust-y, -42px) * .22 - 50%), 0) scale(1.18) rotate(calc(var(--dust-spin, 135deg) * .22));
  }
  54% {
    opacity: 0.95;
    transform: translate3d(calc(var(--dust-x, 0px) * .74 - 50%), calc(var(--dust-y, -42px) * .74 - 50%), 0) scale(0.78) rotate(calc(var(--dust-spin, 135deg) * .74));
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(var(--dust-x, 0px) - 50%), calc(var(--dust-y, -42px) - 50%), 0) scale(0.04) rotate(var(--dust-spin, 135deg));
  }
}

.stash-open-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 212, 118, 0.32);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 212, 118, 0.16), transparent 42%),
    rgba(255, 255, 255, 0.055);
}

.stash-open-panel > div {
  min-width: 0;
}

.stash-open-button {
  min-width: 112px;
}

.stash-open-message {
  flex: 1 1 100%;
  margin: 0;
}

.stash-level-panel,
.stash-ultimate-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
}

.stash-level-panel {
  border: 1px solid rgba(91, 190, 255, 0.34);
  background:
    radial-gradient(circle at 16% 0%, rgba(91, 190, 255, 0.18), transparent 44%),
    rgba(91, 190, 255, 0.07);
  box-shadow: inset 0 0 26px rgba(91, 190, 255, 0.06);
}

.stash-ultimate-panel {
  border: 1px solid rgba(255, 149, 58, 0.42);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 149, 58, 0.2), transparent 46%),
    rgba(255, 111, 58, 0.075);
  box-shadow: inset 0 0 32px rgba(255, 149, 58, 0.08);
}

.stash-level-panel strong,
.stash-ultimate-panel strong {
  display: block;
  margin-top: 4px;
  line-height: 1.18;
}

.stash-level-panel small {
  display: block;
  margin-top: 3px;
  color: #9ed9ff;
  font-weight: 800;
}

.stash-level-controls,
.stash-ultimate-panel {
  align-items: center;
}

.stash-level-controls {
  display: grid;
  grid-template-columns: minmax(86px, 0.56fr) minmax(0, 1fr);
  gap: 10px;
}

.stash-level-controls label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stash-level-controls input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(91, 190, 255, 0.36);
  border-radius: 8px;
  background: rgba(4, 12, 16, 0.74);
  color: var(--ink);
  padding: 8px 10px;
  font: inherit;
}

.stash-level-button {
  min-height: 42px;
  background: linear-gradient(135deg, #72d7ff, #357cff);
  color: #04111d;
}

.stash-ultimate-panel {
  grid-template-columns: minmax(0, 1fr) auto;
}

.stash-ultimate-button {
  min-height: 42px;
  background: linear-gradient(135deg, #ffcf68, #ff7a28);
  color: #211005;
}

.stash-level-message,
.stash-ultimate-message {
  grid-column: 1 / -1;
  margin: 0;
}

.crafting-panel,
.equipment-panel,
.stash-give-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(9, 14, 24, 0.72);
  padding: 14px;
}

.stash-action-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin: 0 0 14px;
}

.crafting-panel-head,
.equipment-panel-head,
.crafting-recipe-card,
.stash-give-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.crafting-panel-head,
.equipment-panel-head,
.crafting-recipe-card {
  justify-content: space-between;
}

.stash-panel-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.crafting-recipe-list {
  display: grid;
  gap: 12px;
  max-height: min(520px, 58vh);
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

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

.crafting-tabs button {
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.crafting-tabs button.active {
  border-color: rgba(255, 212, 118, 0.42);
  background: rgba(255, 212, 118, 0.14);
}

.crafting-tabs span {
  min-width: 24px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.72rem;
}

.crafting-collapsed-preview {
  display: grid;
  gap: 8px;
}

.crafting-collapsed-preview div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.crafting-collapsed-preview strong {
  font-size: 0.84rem;
}

.crafting-collapsed-preview span {
  color: var(--muted);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.crafting-recipe-section {
  display: grid;
  gap: 8px;
}

.crafting-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.crafting-recipe-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 10px;
}

.crafting-recipe-card.ready {
  border-color: rgba(77, 214, 163, 0.35);
}

.crafting-recipe-main,
.crafting-recipe-action {
  display: grid;
  gap: 4px;
}

.crafting-recipe-main span,
.crafting-recipe-main em,
.crafting-recipe-action small,
.stash-give-message {
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
}

.crafting-owned-blueprints {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.crafting-owned-blueprints span {
  max-width: 100%;
  border: 1px solid rgba(120, 202, 255, 0.2);
  border-radius: 999px;
  background: rgba(120, 202, 255, 0.08);
  color: var(--muted);
  padding: 5px 8px;
  font-size: 0.78rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.stash-give-panel {
  margin-top: 12px;
}

.stash-give-controls {
  flex-wrap: wrap;
}

.stash-give-controls label {
  display: grid;
  gap: 5px;
  min-width: 150px;
}

.stash-give-controls input,
.stash-give-controls select {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 10px;
}

body.level-up-pulse::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 155;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 38%, rgba(112, 215, 255, 0.28), transparent 28%),
    radial-gradient(circle at 50% 50%, transparent 42%, rgba(62, 135, 255, 0.28) 76%, rgba(62, 135, 255, 0.42));
  opacity: 0;
  animation: levelUpScreenPulse 1.55s ease-out forwards;
}

@keyframes levelUpScreenPulse {
  0% {
    opacity: 0;
    transform: scale(0.98);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.04);
  }
}

.ultimate-screen-effect {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 203, 104, 0.18), transparent 28%),
    radial-gradient(circle at 50% 50%, transparent 42%, rgba(255, 133, 38, 0.64) 74%, rgba(255, 96, 28, 0.82));
  animation: ultimateScreenGlow 3.35s cubic-bezier(.18, .82, .14, 1) forwards;
}

.ultimate-screen-ring {
  position: absolute;
  width: 42vmax;
  height: 42vmax;
  border-radius: 50%;
  border: 8px solid rgba(255, 221, 127, 0.78);
  box-shadow: 0 0 48px rgba(255, 159, 43, 0.88), inset 0 0 62px rgba(255, 159, 43, 0.56);
  animation: ultimateRingBoom 3.35s cubic-bezier(.14, .78, .14, 1) forwards;
}

.ultimate-screen-core {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  text-align: center;
  text-transform: uppercase;
  color: #fff7d4;
  text-shadow: 0 0 18px rgba(255, 122, 40, 0.9), 0 0 42px rgba(255, 214, 116, 0.55);
  animation: ultimateCorePop 3.35s ease-out forwards;
}

.ultimate-screen-core span {
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  color: #ffe09a;
}

.ultimate-screen-core strong {
  max-width: min(86vw, 720px);
  font-size: clamp(2rem, 8vw, 5.8rem);
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.ultimate-screen-core em {
  font-size: clamp(1rem, 3vw, 1.8rem);
  font-style: normal;
  font-weight: 900;
  color: #fff;
}

@keyframes ultimateScreenGlow {
  0% {
    opacity: 0;
    filter: saturate(1);
  }
  28% {
    opacity: 1;
  }
  68% {
    opacity: 1;
    filter: saturate(1.24);
  }
  84% {
    opacity: 1;
    background:
      radial-gradient(circle at 50% 50%, rgba(255, 248, 210, 0.86), transparent 20%),
      radial-gradient(circle at 50% 50%, rgba(255, 171, 58, 0.9), rgba(255, 94, 28, 0.96));
  }
  100% {
    opacity: 0;
    filter: saturate(1.5);
  }
}

@keyframes ultimateRingBoom {
  0% {
    opacity: 0;
    transform: scale(0.24);
  }
  42% {
    opacity: 1;
    transform: scale(0.74);
  }
  78% {
    opacity: 1;
    transform: scale(1.32);
  }
  100% {
    opacity: 0;
    transform: scale(2.8);
  }
}

@keyframes ultimateCorePop {
  0% {
    opacity: 0;
    transform: scale(0.86);
  }
  34% {
    opacity: 1;
    transform: scale(1);
  }
  78% {
    opacity: 1;
    transform: scale(1.08);
  }
  100% {
    opacity: 0;
    transform: scale(1.22);
  }
}

.stash-drop-preview {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(119, 209, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.stash-drop-head,
.stash-drop-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stash-drop-group {
  display: grid;
  gap: 8px;
}

.stash-drop-group-head strong {
  text-transform: capitalize;
}

.stash-drop-group-head span {
  display: inline-grid;
  justify-items: end;
  gap: 1px;
  color: var(--accent-soft);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.stash-drop-group-head span small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stash-drop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.stash-drop-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(6, 16, 20, 0.72);
}

.stash-drop-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: var(--accent-soft);
  overflow: hidden;
  font-weight: 900;
}

.stash-drop-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.stash-drop-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.stash-drop-row-main {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 8px;
}

.stash-drop-copy strong,
.stash-drop-row-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stash-drop-copy strong {
  font-size: 0.82rem;
}

.stash-drop-row-chance {
  color: #ffe59a;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.stash-drop-row-meta,
.stash-drop-more {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.stash-drop-more {
  display: grid;
  place-items: center;
  min-height: 54px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.stash-metric-card {
  min-height: 112px;
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
  padding: 16px 12px;
  appearance: none;
  color: var(--ink);
  cursor: pointer;
}

.stash-metric-card:hover,
.stash-metric-card:focus-visible {
  border-color: rgba(255, 212, 118, 0.44);
  background:
    radial-gradient(circle at top, rgba(255, 212, 118, 0.12), transparent 58%),
    rgba(255, 255, 255, 0.055);
  outline: none;
}

.stash-metric-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--accent-soft);
}

.stash-base-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.stash-icon-svg {
  width: 100%;
  height: 100%;
}

.stash-metric-card strong {
  max-width: 100%;
  font-size: clamp(0.82rem, 2.8vw, 1.02rem);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

#stash-grid {
  grid-template-columns: 1fr;
}

.stash-summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 12px;
}

.stash-inventory-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.equipment-panel {
  align-content: start;
}

.equipment-slot-head,
.equipment-item-row,
.stash-equip-panel,
.stash-equip-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stash-equip-panel {
  justify-content: space-between;
}

.equipment-panel-head h3 {
  margin: 2px 0 0;
  font-size: 1.05rem;
  line-height: 1.16;
}

.equipment-message {
  margin: 0;
  color: var(--accent-soft);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.equipment-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
  gap: 12px;
}

.equipment-slot {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(152, 194, 190, 0.2);
  background:
    linear-gradient(135deg, rgba(152, 194, 190, 0.08), transparent 45%),
    rgba(8, 18, 23, 0.66);
}

.equipment-slot-head {
  justify-content: flex-start;
}

.equipment-picker-toggle {
  margin-left: auto;
}

.equipment-slot-head > div {
  min-width: 0;
}

.equipment-slot-head strong {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
  line-height: 1.12;
}

.equipment-slot-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--accent-soft);
  opacity: 0.9;
}

.equipment-item-list {
  display: grid;
  gap: 8px;
}

.equipment-item-row {
  min-width: 0;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(255, 255, 255, 0.035);
}

.equipment-item-media {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(5, 14, 18, 0.65);
}

.equipment-item-media .stash-item-icon,
.equipment-item-media .stash-item-fallback-icon {
  width: 32px;
  height: 32px;
}

.equipment-item-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 3px;
}

.equipment-item-copy strong,
.equipment-item-copy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.equipment-item-copy strong {
  font-size: 0.88rem;
  line-height: 1.16;
}

.equipment-item-copy span,
.equipment-empty-line {
  color: var(--muted);
  font-size: 0.78rem;
}

.gear-set-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 8px;
  border: 1px solid rgba(105, 212, 255, 0.34);
  background: rgba(105, 212, 255, 0.1);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.18;
  white-space: nowrap;
}

.equipment-item-copy .gear-set-badge,
.equipment-picker-copy .gear-set-badge,
.stash-gear-set-card .gear-set-badge {
  color: var(--accent);
}

.equipment-unequip-button:not(:disabled),
.equipment-unequip-all:not(:disabled) {
  background: linear-gradient(135deg, #ffd476, #f2b84b);
  color: #201407;
  border-color: rgba(255, 212, 118, 0.55);
}

.equipment-empty-line {
  padding: 10px;
  border-radius: 12px;
  border: 1px dashed rgba(152, 194, 190, 0.22);
  text-align: center;
}

.equipment-loadouts {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.equipment-loadouts-head,
.equipment-loadout-slot,
.equipment-loadout-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.equipment-loadouts-head {
  justify-content: space-between;
}

.equipment-loadout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.equipment-loadout-slot {
  min-width: 0;
  justify-content: space-between;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
}

.equipment-loadout-slot.saved {
  border-color: rgba(255, 212, 118, 0.24);
}

.equipment-loadout-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.equipment-loadout-copy strong,
.equipment-loadout-copy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.equipment-loadout-copy strong {
  font-size: 0.82rem;
  line-height: 1.16;
}

.equipment-loadout-copy span {
  color: var(--muted);
  font-size: 0.74rem;
}

.equipment-loadout-actions {
  flex: 0 0 auto;
}

.equipment-picker {
  display: grid;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 212, 118, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 212, 118, 0.08), transparent 42%),
    rgba(0, 0, 0, 0.14);
}

.equipment-picker-head,
.equipment-picker-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.equipment-picker-head {
  justify-content: space-between;
}

.equipment-picker-list {
  display: grid;
  gap: 6px;
  max-height: min(36vh, 360px);
  overflow: auto;
  padding-right: 2px;
}

@media (min-width: 1100px) {
  .equipment-slot-grid {
    grid-template-columns: repeat(3, minmax(280px, 1fr));
  }
}

.equipment-picker-item {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
}

.equipment-picker-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.equipment-picker-copy strong,
.equipment-picker-copy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.equipment-picker-copy strong {
  font-size: 0.82rem;
  line-height: 1.16;
}

.equipment-picker-copy span {
  flex: 0 0 auto;
  min-width: 32px;
  color: var(--accent-soft);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: right;
}

.equipment-picker-copy .gear-set-badge {
  min-width: 0;
  padding: 3px 7px;
  color: var(--accent);
  font-size: 0.72rem;
  text-align: center;
}

.equipment-picker-amount {
  display: grid;
  gap: 3px;
  min-width: 76px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.equipment-picker-amount input {
  width: 76px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
  padding: 5px 7px;
}

.equipment-picker-equip {
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 9px;
  font-size: 0.72rem;
}

.compact-action {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 11px;
  font-size: 0.76rem;
}

.character-maker-shell {
  display: grid;
  gap: 18px;
}

.character-maker-root {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.character-maker-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.character-maker-form,
.character-maker-picker {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 212, 118, 0.07), transparent 38%),
    rgba(255, 255, 255, 0.035);
}

.character-maker-form {
  position: sticky;
  top: 18px;
}

.character-maker-fields {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.character-maker-fields textarea {
  width: 100%;
  min-height: 118px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  padding: 12px 14px;
  font: inherit;
}

.character-maker-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  aspect-ratio: 4 / 3;
}

.character-maker-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.character-maker-submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.character-maker-submit-row button {
  min-width: 150px;
}

.character-maker-picker {
  grid-column: 2;
}

.character-maker-picker-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
  padding: 0;
  color: var(--ink);
  text-align: left;
  background: transparent;
}

.character-maker-picker-head:hover {
  transform: none;
}

.character-maker-picker-head h3,
.character-maker-picker-head p {
  margin: 0;
}

.character-maker-picker-head span {
  flex: 0 0 auto;
  color: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.character-maker-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  min-width: 0;
}

.character-maker-page-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.character-maker-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.character-maker-option.selected {
  border-color: rgba(255, 212, 118, 0.58);
  background:
    linear-gradient(135deg, rgba(255, 212, 118, 0.11), transparent 55%),
    rgba(255, 255, 255, 0.045);
}

.character-maker-option-main {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 0;
  color: var(--ink);
  text-align: left;
  background: transparent;
}

.character-maker-option-main:hover {
  transform: none;
}

.character-maker-option-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 20%, rgba(105, 212, 255, 0.18), transparent 52%),
    rgba(0, 0, 0, 0.22);
  color: var(--accent-soft);
  font-weight: 900;
}

.character-maker-option-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.character-maker-option-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.character-maker-option-copy strong,
.character-maker-option-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.character-maker-option-copy small {
  color: var(--muted);
  font-size: 0.78rem;
}

.character-maker-option-details {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
}

.character-maker-option-details.stash-detail-groups,
.character-maker-option-details .stash-detail-groups {
  margin: 0;
}

.stash-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 212, 118, 0.06), transparent 34%),
    rgba(255, 255, 255, 0.035);
}

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

.stash-section-head .eyebrow {
  margin-bottom: 5px;
}

.stash-section-head strong {
  display: block;
  max-width: 100%;
  font-size: clamp(0.9rem, 3vw, 1.05rem);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.stash-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
}

.stash-item-card,
.stash-empty-category {
  position: relative;
  min-height: 78px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid rgba(152, 194, 190, 0.2);
  background:
    radial-gradient(circle at top, rgba(255, 212, 118, 0.1), transparent 54%),
    rgba(8, 18, 23, 0.74);
  overflow: hidden;
}

.stash-item-card {
  width: 100%;
  padding: 0;
  appearance: none;
  color: var(--ink);
  cursor: pointer;
}

.stash-item-card.has-effect-summary {
  min-height: 108px;
  grid-template-rows: 40px auto;
  align-content: center;
  gap: 6px;
  padding: 10px 8px 30px;
  place-items: center;
}

.stash-item-card.has-attachment-config {
  border-color: rgba(70, 214, 217, 0.36);
}

.stash-item-card[data-stash-category="abilities"] {
  border-color: rgba(118, 212, 255, 0.34);
  background:
    radial-gradient(circle at 50% 0%, rgba(118, 212, 255, 0.16), transparent 58%),
    rgba(7, 18, 24, 0.82);
}

.stash-item-card[data-stash-category="perks"] {
  border-color: rgba(255, 212, 118, 0.34);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 212, 118, 0.14), transparent 58%),
    rgba(20, 17, 12, 0.82);
}

.stash-item-card:hover,
.stash-item-card:focus-visible {
  border-color: rgba(255, 212, 118, 0.5);
  background:
    radial-gradient(circle at top, rgba(255, 212, 118, 0.16), transparent 54%),
    rgba(12, 28, 35, 0.9);
  outline: none;
}

.stash-item-card::after,
.stash-empty-category::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.stash-empty-category {
  opacity: 0.42;
}

.stash-item-icon {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  object-fit: contain;
  color: var(--accent-soft);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.stash-item-fallback-icon {
  position: absolute;
  z-index: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--accent-soft);
  opacity: 0.28;
  pointer-events: none;
}

.stash-item-fallback-icon .stash-icon-svg {
  width: 100%;
  height: 100%;
}

.stash-item-icon.placeholder {
  display: grid;
  place-items: center;
}

.stash-item-card.has-effect-summary .stash-item-icon {
  width: 40px;
  height: 40px;
}

.stash-item-effect {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(100% - 4px);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--accent-soft);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.1;
  overflow-wrap: anywhere;
  pointer-events: none;
  text-align: center;
}

.stash-quantity,
.stash-level,
.stash-attachment-badge {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 19, 24, 0.88);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.stash-quantity {
  right: 7px;
  bottom: 7px;
  padding: 5px 7px;
}

.stash-level {
  left: 7px;
  bottom: 7px;
  padding: 4px 6px;
  color: var(--accent-soft);
}

.stash-attachment-badge {
  right: 7px;
  bottom: 7px;
  padding: 5px 7px;
  border-color: rgba(70, 214, 217, 0.45);
  color: #a9fbff;
}

.achievement-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(255, 212, 118, 0.12), rgba(105, 212, 255, 0.06)),
    rgba(255, 255, 255, 0.03);
}

.achievement-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 12px;
  min-width: min(320px, 100%);
}

.achievement-list-panel {
  margin-top: 18px;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.leaderboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(70, 214, 217, 0.12), rgba(89, 236, 150, 0.07)),
    rgba(255, 255, 255, 0.03);
}

.leaderboard-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 10px;
  min-width: min(390px, 100%);
}

.leaderboard-root {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.leaderboard-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.leaderboard-toolbar h3 {
  margin: 0;
}

.leaderboard-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 14px;
}

.leaderboard-board-card {
  display: grid;
  gap: 14px;
}

.leaderboard-board-card.disabled {
  opacity: 0.72;
}

.leaderboard-board-head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.leaderboard-board-head h3,
.leaderboard-board-head p {
  margin: 0;
}

.leaderboard-board-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(70, 214, 217, 0.32);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(70, 214, 217, 0.15), rgba(255, 255, 255, 0.04)),
    rgba(6, 18, 22, 0.82);
  color: #a9fbff;
  font-weight: 900;
  font-size: 0.8rem;
}

.leaderboard-board-meta,
.leaderboard-rewards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.leaderboard-board-meta span,
.leaderboard-rewards span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.82rem;
}

.leaderboard-rewards b {
  color: #b7ffdf;
}

.leaderboard-open-row {
  display: flex;
  justify-content: flex-end;
}

.leaderboard-claim-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.leaderboard-table {
  display: grid;
  gap: 8px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 48px 42px minmax(0, 1fr) minmax(78px, auto) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.leaderboard-row.viewer {
  border-color: rgba(89, 236, 150, 0.38);
  background: rgba(89, 236, 150, 0.08);
}

.leaderboard-place {
  color: #a9fbff;
  font-weight: 900;
}

.leaderboard-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(70, 214, 217, 0.12);
  border: 1px solid rgba(70, 214, 217, 0.24);
  color: #a9fbff;
  font-size: 0.78rem;
  font-weight: 900;
}

.leaderboard-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leaderboard-player {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.leaderboard-player b,
.leaderboard-player small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-player small {
  color: var(--muted);
  font-size: 0.78rem;
}

.leaderboard-row strong {
  text-align: right;
}

.leaderboard-row .tiny {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 12px;
}

.leaderboard-row-spacer {
  height: 1px;
  margin: 2px 0;
  background: rgba(255, 255, 255, 0.08);
}

.leaderboard-pool-detail,
.leaderboard-admin-tools {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.leaderboard-admin-row,
.leaderboard-prize-row {
  display: grid;
  gap: 10px;
  align-items: end;
}

.leaderboard-admin-row {
  grid-template-columns: minmax(150px, 0.7fr) minmax(120px, 1fr);
}

.leaderboard-prize-grid {
  display: grid;
  gap: 10px;
}

.leaderboard-prize-row {
  grid-template-columns: 110px repeat(2, minmax(96px, 1fr));
}

.leaderboard-admin-tools label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.82rem;
}

.leaderboard-admin-tools input[type="number"] {
  width: 100%;
}

.leaderboard-admin-tools .toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.leaderboard-empty,
.leaderboard-empty-panel {
  color: var(--muted);
}

@media (max-width: 720px) {
  .leaderboard-hero,
  .leaderboard-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .leaderboard-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
  }

  .leaderboard-row {
    grid-template-columns: 40px 38px minmax(0, 1fr) minmax(64px, auto);
  }

  .leaderboard-row strong {
    grid-column: 4 / 5;
  }

  .leaderboard-row .tiny {
    grid-column: 3 / 5;
    justify-self: stretch;
  }

  .leaderboard-admin-row,
  .leaderboard-prize-row {
    grid-template-columns: 1fr;
  }
}

.achievement-card {
  min-height: 128px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.achievement-card.owned {
  border-color: rgba(255, 212, 118, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 212, 118, 0.13), rgba(105, 212, 255, 0.05)),
    rgba(255, 255, 255, 0.04);
}

.achievement-card.locked {
  opacity: 0.68;
}

.achievement-icon {
  width: 58px;
  height: 58px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid rgba(255, 212, 118, 0.22);
  background: rgba(7, 16, 20, 0.72);
  overflow: hidden;
}

.achievement-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.achievement-icon-fallback {
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.achievement-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.achievement-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.achievement-title-row h4 {
  margin: 0;
  overflow-wrap: anywhere;
}

.achievement-copy p {
  margin: 0;
  color: var(--muted);
}

.achievement-state {
  flex: none;
}

.character-card,
.stack-list,
.game-card-list,
.room-list,
.entity-list,
.ability-list {
  display: grid;
  gap: 10px;
}

.room-create-card,
.room-browser-shell,
.room-detail-card,
.activity-browser-card {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.activity-browser-card {
  display: block;
}

.activity-browser-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.activity-browser-card summary::-webkit-details-marker {
  display: none;
}

.activity-browser-card .play-filter-grid {
  margin-top: 12px;
}

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

.room-create-toggle {
  width: 100%;
  justify-content: space-between;
  text-align: left;
  min-height: 58px;
}

.room-create-toggle > span:first-child {
  display: grid;
  gap: 2px;
}

.room-create-card.collapsed {
  padding: 10px;
}

.room-create-card.open {
  background:
    radial-gradient(circle at top right, rgba(255, 212, 118, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.035);
}

.room-create-card .field {
  min-width: 0;
  gap: 6px;
}

.room-create-card .field span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-name-field {
  grid-column: 1 / -1;
}

.room-create-card input,
.room-create-card select {
  min-width: 0;
  padding: 10px 12px;
  min-height: 44px;
}

.room-create-body > button {
  grid-column: 1 / -1;
  min-height: 44px;
}

.room-create-message {
  grid-column: 1 / -1;
  margin: 0;
  color: #ffd2a6;
}

.room-card-head,
.room-member-card,
.character-summary-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.character-summary-card > div {
  min-width: 0;
}

.character-summary-loadout {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.character-summary-loadout > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.character-summary-loadout > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.character-summary-loadout strong {
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.character-summary-loadout small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
}

.room-member-handle {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.room-card-head {
  justify-content: space-between;
}

.room-invite-row.invited {
  opacity: 0.72;
}

.room-card-head h4 {
  margin: 0;
}

.room-member-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.room-member-avatar,
.character-summary-avatar {
  width: 58px;
  height: 58px;
  flex: none;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.room-member-copy {
  min-width: 0;
}

.room-member-copy h4 {
  margin: 0 0 4px;
}

#home-friends-preview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stack-card h4,
.room-card h4,
.friend-card h4 {
  margin: 0 0 6px;
}

.stack-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.shop-status-line,
.shop-card-top,
.shop-meta-row,
.shop-buy-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-status-line {
  justify-content: space-between;
  margin-bottom: 12px;
}

.shop-shell {
  display: grid;
  gap: 16px;
}

.shop-head {
  align-items: center;
}

.shop-mode-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.16);
}

.shop-mode-tab {
  min-height: 40px;
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
}

.shop-mode-tab.active,
.shop-mode-tab:focus-visible {
  color: var(--ink);
  border-color: rgba(255, 212, 118, 0.42);
  background: linear-gradient(135deg, rgba(255, 212, 118, 0.16), rgba(105, 212, 255, 0.08));
  outline: none;
}

.shop-wallet-grid {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.shop-wallet-grid.market-wallet-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shop-tab-panel {
  display: grid;
  gap: 14px;
}

.shop-tab-panel[hidden],
.market-panel[hidden] {
  display: none;
}

.shop-section {
  display: grid;
  gap: 12px;
}

.shop-section + .shop-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.shop-card-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shop-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(255, 212, 118, 0.1), transparent 38%),
    rgba(255, 255, 255, 0.04);
}

.shop-card.locked {
  opacity: 0.72;
}

.shop-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 212, 118, 0.24);
  background: rgba(255, 212, 118, 0.08);
  color: var(--accent-soft);
  font-weight: 800;
}

.shop-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.shop-copy {
  min-width: 0;
}

.shop-copy h4 {
  margin: 0 0 4px;
}

.shop-meta-row {
  flex-wrap: wrap;
}

.shop-buy-row {
  justify-content: space-between;
}

.shop-buy-row .field {
  max-width: 96px;
}

.shop-qty-input {
  min-width: 0;
}

.shop-message {
  margin: 0 0 12px;
  color: var(--accent-soft);
  font-weight: 700;
}

.currency-metric-card {
  position: relative;
  overflow: hidden;
  min-height: 92px;
}

.currency-metric-card span,
.currency-metric-card strong {
  padding-right: 46px;
}

.currency-metric-card img {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  object-fit: contain;
  opacity: 0.92;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.28));
}

.kitket-machine {
  padding: 16px;
  border: 1px solid rgba(255, 212, 118, 0.26);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 212, 118, 0.11), rgba(105, 212, 255, 0.07)),
    rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.kitket-machine-head,
.kitket-machine-balance,
.kitket-result {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kitket-machine-head {
  justify-content: space-between;
}

.kitket-machine-balance {
  min-width: 142px;
  justify-content: flex-end;
  text-align: right;
}

.kitket-machine-balance span,
.kitket-result small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.kitket-token-icon,
.kitket-result-icon,
.kitket-reward-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 212, 118, 0.26);
  background: rgba(255, 212, 118, 0.08);
  color: var(--accent-soft);
  font-weight: 900;
  overflow: hidden;
}

.kitket-token-icon,
.kitket-result-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.kitket-reward-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.kitket-token-icon img,
.kitket-result-icon img,
.kitket-reward-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.kitket-reel-item .kitket-reward-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.kitket-reel {
  position: relative;
  min-width: 0;
  height: 134px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.kitket-reel-pointer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 3;
  width: 3px;
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, transparent, rgba(255, 212, 118, 0.95) 18%, rgba(255, 212, 118, 0.95) 82%, transparent),
    rgba(255, 212, 118, 0.22);
  box-shadow: 0 0 22px rgba(255, 212, 118, 0.46);
  pointer-events: none;
}

.kitket-reel-track {
  min-width: max-content;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px calc(50% - 54px);
  transform: translateX(0);
  will-change: transform;
}

.kitket-reel-track.spinning {
  filter: drop-shadow(0 0 18px rgba(255, 212, 118, 0.14));
}

.kitket-reel-track.settled {
  transform: translateX(var(--kitket-reel-target, 0));
}

.kitket-reel-item {
  width: 108px;
  height: 106px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.kitket-reel-item.winner {
  border-color: rgba(255, 212, 118, 0.72);
  background: rgba(255, 212, 118, 0.14);
  box-shadow: 0 0 24px rgba(255, 212, 118, 0.24);
}

.kitket-reel-item small {
  width: 100%;
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.12;
  text-align: center;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
}

.kitket-result {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(105, 212, 255, 0.24);
  border-radius: 16px;
  background: rgba(105, 212, 255, 0.07);
}

.kitket-result span {
  min-width: 0;
}

.kitket-result strong {
  display: block;
  overflow-wrap: anywhere;
}

.kitket-machine-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.72fr);
  gap: 12px;
}

.kitket-odds-grid,
.kitket-preview-grid {
  display: grid;
  gap: 8px;
}

.kitket-odds-grid {
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
}

.kitket-odds-grid > span,
.kitket-preview-grid > span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.kitket-odds-grid > span {
  padding: 9px 10px;
}

.kitket-odds-grid strong,
.kitket-odds-grid small {
  display: block;
}

.kitket-odds-grid small {
  color: var(--muted);
  margin-top: 2px;
}

.kitket-preview-grid {
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  max-height: 320px;
  overflow: auto;
}

.kitket-preview-grid > span {
  min-height: 86px;
  display: grid;
  place-items: center;
  align-content: start;
  gap: 5px;
  padding: 8px;
}

.kitket-preview-grid small,
.engine-kitket-preview small {
  width: 100%;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.14;
  text-align: center;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
}

.kitket-pool-panel {
  display: grid;
  gap: 10px;
}

.kitket-pool-toggle {
  width: 100%;
}

.kitket-open-button {
  width: 100%;
  min-height: 42px;
}

.market-shell {
  display: grid;
  gap: 16px;
}

.market-panel {
  display: grid;
  gap: 14px;
}

.market-head,
.market-detail-head,
.market-detail-actions,
.market-detail-section-head,
.market-title-lockup,
.market-chart-head,
.market-chart-legend,
.market-listing-meta,
.market-offer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.market-head,
.market-detail-head,
.market-detail-section-head,
.market-chart-head {
  justify-content: space-between;
}

.market-tab-row,
.market-timeframe-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.market-tab,
.market-timeframe-row button.active {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.market-tab.active,
.market-timeframe-row button.active {
  color: var(--ink);
  border-color: rgba(255, 212, 118, 0.42);
  background: linear-gradient(135deg, rgba(255, 212, 118, 0.16), rgba(105, 212, 255, 0.08));
}

.market-wallet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.market-filter-grid,
.market-sell-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(128px, 0.8fr)) auto;
  gap: 10px;
  align-items: end;
}

.market-filter-grid button,
.market-sell-grid button {
  min-height: 46px;
}

.market-browser-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(0, 1.12fr);
  gap: 14px;
  align-items: start;
}

.market-catalog,
.market-detail,
.market-mine,
.market-listing-list,
.market-offer-list,
.market-mine-grid {
  display: grid;
  gap: 12px;
}

.market-catalog {
  max-height: min(760px, calc(100vh - 260px));
  overflow: auto;
  padding-right: 4px;
}

.market-item-card {
  width: 100%;
  min-height: 86px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  border-radius: 18px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.market-item-card.selected,
.market-item-card:focus-visible,
.market-item-card:hover {
  border-color: rgba(255, 212, 118, 0.48);
  background:
    radial-gradient(circle at top left, rgba(255, 212, 118, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.055);
  outline: none;
}

.market-item-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 212, 118, 0.24);
  background: rgba(255, 212, 118, 0.08);
  color: var(--accent-soft);
  font-weight: 900;
}

.market-item-icon.large {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  flex: none;
}

.market-item-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.market-item-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.market-item-copy strong,
.market-item-copy em,
.market-item-copy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-item-copy em,
.market-item-copy span {
  color: var(--muted);
  font-style: normal;
  font-size: 0.84rem;
}

.market-detail,
.market-sell-card,
.market-register-card,
.market-seller-summary,
.market-listing-card,
.market-offer-card,
.market-chart {
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.market-detail {
  background:
    radial-gradient(circle at top right, rgba(105, 212, 255, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.035);
}

.market-title-lockup {
  min-width: 0;
  align-items: flex-start;
}

.market-title-lockup h3 {
  margin: 0;
  overflow-wrap: anywhere;
}

.market-detail-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.market-detail-back {
  display: none;
}

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

.market-detail-kpis span {
  min-width: 0;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 212, 118, 0.16);
  background: rgba(255, 212, 118, 0.055);
}

.market-detail-kpis small,
.market-detail-kpis strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-detail-kpis small {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.market-detail-kpis strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.86rem;
}

.market-detail-section-head h4 {
  margin: 0;
}

.market-chart {
  display: grid;
  gap: 8px;
  overflow: hidden;
}

.market-chart.empty {
  min-height: 172px;
  place-items: center;
  text-align: center;
}

.market-chart.empty h4 {
  margin: 0;
}

.market-chart svg {
  width: 100%;
  aspect-ratio: 2 / 1;
  min-height: 150px;
}

.market-chart-head,
.market-chart-legend {
  color: var(--muted);
  font-size: 0.82rem;
}

.market-chart-legend {
  flex-wrap: wrap;
}

.market-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.market-chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ffd476;
}

.market-chart-legend i.super {
  background: #69d4ff;
}

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

.market-stat-strip span {
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.12);
}

.market-stat-strip strong {
  display: block;
  color: var(--ink);
}

.market-listing-card,
.market-offer-card,
.market-register-card {
  display: grid;
  gap: 12px;
}

.market-listing-card h4,
.market-offer-card h4,
.market-register-card h3 {
  margin: 0;
  overflow-wrap: anywhere;
}

.market-listing-card.compact {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.market-buy-grid {
  display: grid;
  grid-template-columns: minmax(86px, 1fr) minmax(96px, auto);
  gap: 10px;
  align-items: end;
}

.market-register-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.market-seller-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.market-sell-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.market-sell-grid button {
  grid-column: auto;
}

.market-offer-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.market-offer-card strong {
  display: block;
  margin-top: 4px;
  color: var(--accent-soft);
}

.market-offer-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.room-card {
  padding: 14px;
  border-radius: 18px;
  text-align: left;
  width: 100%;
}

.room-card.selected {
  border-color: rgba(255, 212, 118, 0.42);
  background: linear-gradient(135deg, rgba(255, 212, 118, 0.12), rgba(105, 212, 255, 0.08));
}

.room-meta-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.field {
  display: grid;
  gap: 8px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
}

.section-head.compact {
  align-items: start;
  margin-bottom: 12px;
}

.field-compact {
  max-width: 280px;
}

.friends-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.friend-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.friend-summary-pill {
  min-width: 120px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.friend-summary-pill strong {
  display: block;
  margin-top: 6px;
  font-size: 1.18rem;
}

.friend-summary-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.friend-search-shell {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.friend-requests-panel {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.friend-requests-panel[hidden] {
  display: none;
}

.friend-requests-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.friend-requests-head h3 {
  margin: 2px 0 0;
  font-size: 1.05rem;
}

.friend-request-stack {
  display: grid;
  gap: 10px;
}

.friend-search-results,
.friends-roster {
  display: grid;
  gap: 12px;
}

.friends-roster {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  margin-top: 12px;
}

.global-chat-shell {
  display: grid;
  gap: 7px;
  min-height: 0;
  padding: 12px;
  grid-template-rows: auto auto auto auto;
}

.global-chat-shell .section-head {
  align-items: center;
  gap: 10px;
}

.global-chat-shell h2 {
  margin: 1px 0 0;
  font-size: 1.18rem;
  line-height: 1.1;
}

.global-chat-shell .eyebrow {
  font-size: 0.68rem;
  line-height: 1;
}

.chat-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-tools .secondary {
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 9px;
  font-size: 0.78rem;
}

.chat-channel-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
}

.chat-channel-button {
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.chat-channel-button.active {
  color: #201407;
  background: linear-gradient(135deg, #ffd476, #f2b84b);
}

.chat-friend-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  padding: 1px 2px 5px;
  scrollbar-width: thin;
}

.chat-friend-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  max-width: 160px;
  min-height: 30px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.chat-friend-button.active {
  border-color: rgba(255, 212, 118, 0.6);
  background: rgba(255, 212, 118, 0.14);
  color: var(--text);
}

.chat-friend-button img {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex: none;
}

.chat-friend-button span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-friend-all {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: rgba(105, 212, 255, 0.12);
  color: #bfefff;
  font-size: 0.62rem;
}

.chat-friend-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.chat-friend-empty .secondary {
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 9px;
  font-size: 0.76rem;
}

.global-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 120px;
  max-height: clamp(230px, 34vh, 380px);
  overflow: auto;
  padding: 2px;
}

.global-chat-message {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  padding: 4px 7px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(105, 212, 255, 0.045), rgba(255, 212, 118, 0.025)),
    rgba(255, 255, 255, 0.032);
}

.chat-avatar-frame {
  width: 24px;
  height: 24px;
  --profile-border-size: calc(100% + 18px);
}

.chat-avatar {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.global-chat-copy {
  min-width: 0;
  display: block;
  line-height: 1.12;
}

.global-chat-topline {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
  line-height: 1.12;
}

.global-chat-topline strong {
  overflow-wrap: anywhere;
  font-size: 0.84rem;
}

.global-chat-topline span,
.global-chat-topline time {
  color: var(--muted);
  font-size: 0.68rem;
}

.global-chat-copy p {
  display: inline;
  margin: 0 0 0 5px;
  line-height: 1.15;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-size: 0.82rem;
}

.global-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.global-chat-form input {
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 10px;
}

.global-chat-form button {
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 10px;
}

#global-chat-status {
  min-height: 1em;
  margin: 0;
  font-size: 0.78rem;
}

#play-view.active {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
}

#play-view.active.match-live {
  grid-template-columns: minmax(0, 1fr);
}

#play-view.active.match-live .play-browser-panel {
  display: none;
}

.play-browser-panel {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.play-filter-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 0.7fr));
  gap: 12px;
  margin-bottom: 16px;
}

.play-browser-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
}

.browser-nav-button {
  min-width: 58px;
  padding: 0;
  font-size: 1.8rem;
}

.game-browser-shell {
  display: grid;
}

.game-browser-card {
  min-height: 184px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(14, 29, 36, 0.94), rgba(8, 18, 23, 0.96)),
    radial-gradient(circle at top right, rgba(255, 212, 118, 0.1), transparent 40%);
  display: grid;
  gap: 14px;
}

.game-browser-card.empty,
.game-browser-card.unavailable {
  opacity: 0.78;
}

.game-browser-topline,
.notification-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.game-browser-footer {
  display: flex;
  justify-content: flex-start;
  margin-top: auto;
}

.game-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
}

.friend-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 88px;
}

.friend-card.search-result {
  align-items: flex-start;
}

.friend-card.search-result .friend-main {
  align-items: flex-start;
}

.friend-card.compact {
  min-height: 0;
}

.friend-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.friend-avatar-frame {
  width: 54px;
  height: 54px;
  --profile-border-size: calc(100% + 38px);
}

.friend-avatar {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  flex: none;
}

.friend-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.friend-copy h4,
.friend-copy .room-meta-line {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.friend-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.friend-title-row h4 {
  margin: 0;
  min-width: 0;
}

.friend-presence {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.friend-presence.online {
  border-color: rgba(99, 217, 140, 0.28);
  color: #bff3ce;
}

.friend-presence.idle {
  border-color: rgba(242, 184, 75, 0.34);
  color: #ffe2a6;
}

.friend-presence.offline {
  border-color: rgba(255, 107, 87, 0.28);
  color: #ffd0c7;
}

.friend-profile-summary {
  display: flex;
  align-items: center;
  gap: 16px;
}

.friend-profile-avatar-frame {
  width: 92px;
  height: 92px;
  --profile-border-size: calc(100% + 48px);
}

.friend-profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  flex: none;
}

.friend-profile-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.friend-profile-copy h3 {
  margin: 0;
}

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

.friend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex: none;
}

.friend-dot.online {
  background: var(--ok);
  box-shadow: 0 0 0 6px rgba(99, 217, 140, 0.12);
}

.friend-dot.idle {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(242, 184, 75, 0.14);
}

.friend-dot.offline {
  background: var(--danger);
  box-shadow: 0 0 0 6px rgba(255, 107, 87, 0.12);
}

.friend-dot.pending {
  background: var(--accent-soft);
  box-shadow: 0 0 0 6px rgba(255, 212, 118, 0.14);
}

.friend-card.side-menu-open {
  border-color: rgba(255, 212, 118, 0.32);
}

.friend-search-actions {
  display: grid;
  gap: 8px;
  min-width: 132px;
}

.friend-search-actions > button {
  width: 100%;
}

.friend-profile-grid.full,
.stash-profile-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.mission-grid .metric-card,
.friend-profile-grid.full .metric-card {
  min-height: 92px;
}

.friend-profile-achievements {
  display: grid;
  gap: 12px;
}

.friend-profile-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.friend-profile-section-head h4 {
  margin: 0;
}

.friend-profile-achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.friend-profile-achievement-grid .achievement-card {
  min-height: 112px;
}

.profile-border-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.profile-border-card {
  width: 100%;
  min-height: 156px;
  display: grid;
  gap: 10px;
  justify-items: center;
  align-content: center;
  text-align: center;
  padding: 14px 12px;
}

.profile-border-preview-frame {
  margin: 4px 0;
  --profile-border-size: calc(100% + 42px);
}

.profile-border-card span {
  font-weight: 700;
}

.border-picker-note {
  margin: 0;
  color: var(--muted);
}

.friend-menu-wrap {
  position: relative;
}

.friend-menu-button {
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.friend-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  padding: 8px;
  display: grid;
  gap: 6px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(8, 19, 24, 0.98);
  box-shadow: var(--shadow);
  z-index: 5;
}

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

.friend-menu-item {
  text-align: left;
  width: 100%;
}

.friend-menu-item.danger {
  border-color: rgba(255, 107, 87, 0.24);
  color: #ffd0c7;
}

.lookup-shell {
  display: grid;
  gap: 18px;
}

.lookup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 180px) auto;
  gap: 12px;
  align-items: center;
}

.lookup-form input {
  min-width: 0;
}

.lookup-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: start;
}

.lookup-results,
.lookup-detail {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.lookup-result-wrap {
  display: grid;
  gap: 8px;
}

.lookup-inline-detail {
  display: none;
}

.lookup-result-card {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.lookup-result-card.active {
  border-color: rgba(255, 212, 118, 0.4);
  background: rgba(255, 212, 118, 0.12);
}

.lookup-result-image,
.lookup-result-glyph {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.lookup-result-image {
  object-fit: cover;
}

.lookup-result-glyph {
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-soft);
}

.lookup-result-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.lookup-result-copy strong,
.lookup-result-copy small {
  overflow-wrap: anywhere;
}

.lookup-score {
  color: var(--muted);
  font-size: 0.72rem;
}

.lookup-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lookup-result-card .lookup-tags {
  display: none;
}

.lookup-detail-card,
.lookup-empty {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.lookup-detail-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.lookup-detail-head .lookup-result-image,
.lookup-detail-head .lookup-result-glyph {
  width: 72px;
  height: 72px;
}

.lookup-detail-head h3,
.lookup-empty h3 {
  margin: 0;
}

.lookup-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.lookup-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.lookup-detail-groups {
  display: grid;
  gap: 12px;
}

.lookup-detail-groups .stash-detail-group {
  background: rgba(0, 0, 0, 0.14);
}

.lookup-inline-detail .lookup-detail-card,
.lookup-inline-detail .lookup-empty {
  padding: 12px;
  background: rgba(255, 212, 118, 0.07);
}

.lookup-inline-detail .lookup-detail-head {
  grid-template-columns: 48px minmax(0, 1fr);
}

.lookup-inline-detail .lookup-detail-head .lookup-result-image,
.lookup-inline-detail .lookup-detail-head .lookup-result-glyph {
  width: 48px;
  height: 48px;
}

.notification-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 10px;
}

.notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.reward-line {
  color: var(--accent-soft);
}

.admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-section-card {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.admin-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.admin-section-title h4 {
  margin: 0;
}

.admin-selected-strip,
.admin-reward-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-player-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.admin-player-row {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  text-align: left;
}

.admin-player-row.selected,
.admin-category-card.selected {
  border-color: rgba(255, 212, 118, 0.48);
  background: linear-gradient(135deg, rgba(255, 212, 118, 0.14), rgba(105, 212, 255, 0.07));
}

.admin-player-row span,
.admin-player-row strong,
.admin-player-row small {
  min-width: 0;
}

.admin-player-row strong,
.admin-player-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-player-row small,
.admin-player-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.8rem;
}

.admin-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.admin-category-card {
  min-height: 112px;
  padding: 12px;
  border-radius: 18px;
  display: grid;
  gap: 8px;
  justify-items: center;
  align-content: center;
  text-align: center;
}

.admin-category-icon,
.admin-preview-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  overflow: hidden;
}

.admin-category-icon img,
.admin-preview-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-icon-fallback {
  color: var(--accent-soft);
  font-weight: 800;
}

.reward-grid {
  align-items: end;
}

.admin-reward-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-grants-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.admin-grant-card {
  padding: 14px;
  border-radius: 18px;
  display: grid;
  gap: 10px;
}

.admin-grant-card h4 {
  margin: 8px 0 6px;
}

.engine-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
}

.engine-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.engine-metrics-panel,
.engine-content-panel,
.engine-jungle-panel,
.engine-kitket-panel,
.engine-player-equipment-panel {
  min-width: 0;
}

.engine-content-panel {
  grid-row: span 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: min(82vh, 860px);
  overflow: hidden;
}

.engine-panel-scroll {
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.engine-view button {
  min-height: 0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.84rem;
  line-height: 1.15;
}

.engine-equipment-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}

.engine-self-grant {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.engine-self-grant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.engine-self-grant-head div {
  min-width: 0;
}

.engine-self-grant-head strong,
.engine-self-grant-head span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.engine-self-grant-head span {
  color: var(--muted);
  font-size: 0.8rem;
}

.engine-self-grant-controls {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 86px auto;
  align-items: end;
  gap: 10px;
  min-width: 0;
}

.engine-self-grant-controls button {
  width: 100%;
}

.engine-player-equipment-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  min-width: 0;
  margin-bottom: 12px;
}

.engine-player-equipment-slots,
.engine-player-equipment-items {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.engine-player-equipment-slot {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.engine-player-equipment-slot-head,
.engine-player-equipment-item,
.engine-player-equipment-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.engine-player-equipment-slot-head {
  justify-content: space-between;
}

.engine-player-equipment-slot-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.engine-player-equipment-slot.collapsed {
  gap: 6px;
}

.engine-player-equipment-slot.collapsed .room-meta-line {
  margin: 0;
}

.engine-player-equipment-slot-head span,
.engine-player-equipment-copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

.engine-player-equipment-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.engine-player-equipment-copy {
  min-width: 0;
}

.engine-player-equipment-copy strong,
.engine-player-equipment-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.engine-json-editor {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0 0 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.engine-json-toolbar {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1.3fr) auto auto;
  align-items: end;
  gap: 10px;
  min-width: 0;
}

.engine-json-textarea {
  width: 100%;
  min-height: 240px;
  max-height: 420px;
  resize: vertical;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(1, 12, 15, 0.74);
  padding: 10px;
  font: 0.86rem/1.45 Consolas, "Cascadia Mono", monospace;
}

.engine-kitket-panel {
  display: grid;
  gap: 12px;
}

.engine-kitket-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 8px;
  max-height: 230px;
  overflow: auto;
}

.engine-kitket-preview > span {
  display: grid;
  place-items: center;
  gap: 5px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.engine-kitket-textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(1, 12, 15, 0.74);
  padding: 10px;
  font: 0.86rem/1.45 Consolas, "Cascadia Mono", monospace;
}

.engine-leaderboard-panel,
.engine-leaderboard-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.engine-leaderboard-board {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

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

.engine-leaderboard-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.engine-leaderboard-head small {
  color: var(--muted);
}

.engine-leaderboard-head .toggle-row {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}

.engine-leaderboard-prize-grid {
  display: grid;
  gap: 8px;
}

.engine-leaderboard-prize-row {
  display: grid;
  grid-template-columns: 110px repeat(2, minmax(90px, 1fr));
  align-items: end;
  gap: 8px;
}

.engine-leaderboard-prize-row input,
.engine-leaderboard-board input {
  min-width: 0;
}

.engine-jungle-spawn-form {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.engine-difficulty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 8px;
  min-width: 0;
}

.engine-difficulty-grid .field span {
  text-transform: capitalize;
}

.engine-jungle-rule-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.engine-jungle-rule-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(135px, 1.1fr) 78px 86px 76px auto;
  align-items: end;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.engine-jungle-rule-row .field,
.engine-jungle-rule-row input,
.engine-jungle-rule-row select {
  min-width: 0;
}

.engine-jungle-rule-id input {
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 0.8rem;
}

.engine-jungle-rule-row .danger-button {
  white-space: nowrap;
}

.engine-equipment-tab,
.engine-equipment-row {
  min-width: 0;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
}

.engine-equipment-tab {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  text-align: left;
  padding: 7px 8px;
  border-radius: 8px;
}

.engine-equipment-tab span,
.engine-equipment-fallback-icon {
  display: grid;
  place-items: center;
  color: var(--accent-soft);
}

.engine-equipment-tab .stash-icon-svg,
.engine-equipment-fallback-icon .stash-icon-svg {
  width: 20px;
  height: 20px;
}

.engine-equipment-tab.active,
.engine-equipment-row.selected {
  border-color: rgba(255, 212, 118, 0.48);
  background: linear-gradient(135deg, rgba(255, 212, 118, 0.13), rgba(105, 212, 255, 0.07));
}

.engine-equipment-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
  min-width: 0;
  align-items: start;
}

.engine-equipment-list,
.engine-equipment-editor {
  min-width: 0;
}

.engine-equipment-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.engine-equipment-list-scroll {
  display: grid;
  gap: 6px;
  max-height: 430px;
  overflow-y: auto;
  padding-right: 3px;
}

.engine-equipment-row {
  width: 100%;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 7px;
  border-radius: 8px;
  text-align: left;
}

.engine-equipment-row span,
.engine-equipment-row strong,
.engine-equipment-row small {
  min-width: 0;
}

.engine-equipment-row strong,
.engine-equipment-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.engine-equipment-row small {
  color: var(--muted);
  font-size: 0.78rem;
}

.engine-equipment-icon,
.engine-preview-item-icon {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.engine-equipment-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.engine-preview-item-icon {
  width: 54px;
  height: 54px;
  border-radius: 8px;
}

.engine-equipment-icon img,
.engine-preview-item-icon img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.engine-equipment-icon .engine-equipment-fallback-icon,
.engine-preview-item-icon .engine-equipment-fallback-icon {
  position: absolute;
  inset: 0;
  opacity: 0.35;
}

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

.engine-equipment-wide {
  grid-column: 1 / -1;
}

.engine-equipment-preview {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.engine-preview-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.engine-preview-head strong,
.engine-preview-head span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.engine-preview-head span,
.engine-preview-metrics span {
  color: var(--muted);
  font-size: 0.82rem;
}

.engine-range-preview {
  position: relative;
  height: 150px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(105, 212, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    rgba(2, 8, 10, 0.48);
  background-size: 24px 24px;
}

.engine-preview-player {
  position: absolute;
  left: 24%;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--player);
  box-shadow: 0 0 0 5px rgba(105, 212, 255, 0.14);
}

.engine-ranged-reach {
  position: absolute;
  left: 24%;
  top: 50%;
  width: clamp(46px, calc(var(--engine-range) * 19px), 230px);
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, var(--accent-soft), rgba(255, 212, 118, 0.08));
  box-shadow: 0 0 16px rgba(255, 212, 118, 0.32);
}

.engine-ranged-reach::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%) rotate(45deg);
  border-top: 2px solid var(--accent-soft);
  border-right: 2px solid var(--accent-soft);
}

.engine-melee-cone {
  position: absolute;
  left: 24%;
  top: 50%;
  width: clamp(48px, calc(var(--engine-length) * 50px), 230px);
  height: clamp(32px, calc(var(--engine-width) * 46px), 170px);
  transform: translateY(-50%);
  clip-path: polygon(0 42%, 100% 0, 100% 100%, 0 58%);
  border: 1px solid rgba(255, 212, 118, 0.56);
  background: linear-gradient(90deg, rgba(255, 212, 118, 0.34), rgba(255, 107, 87, 0.1));
  box-shadow: 0 0 22px rgba(255, 212, 118, 0.18);
}

.engine-armor-shield {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-height: 120px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(105, 212, 255, 0.18);
  border-radius: 8px;
  background: rgba(2, 8, 10, 0.48);
}

.engine-armor-shield span {
  min-height: 16px;
  height: clamp(18px, calc((var(--engine-defense) + 1) * 8px), 96px);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, rgba(105, 212, 255, 0.82), rgba(99, 217, 140, 0.24));
  border: 1px solid rgba(105, 212, 255, 0.34);
}

.engine-preview-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.engine-preview-metrics span {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  white-space: nowrap;
}

.engine-root-list,
.engine-file-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.engine-root-list span {
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.engine-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.engine-content-panel textarea {
  width: 100%;
  resize: vertical;
  min-height: 150px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  font: 0.9rem/1.45 Consolas, "Cascadia Mono", monospace;
}

@media (max-width: 920px) {
  .engine-panel-grid,
  .engine-form-grid {
    grid-template-columns: 1fr;
  }

  .engine-jungle-rule-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .engine-leaderboard-prize-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .engine-content-panel {
    max-height: none;
  }

  .engine-panel-scroll {
    max-height: min(72vh, 760px);
  }

  .engine-hero {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .engine-equipment-layout,
  .engine-equipment-form,
  .engine-json-toolbar,
  .engine-self-grant-controls,
  .engine-player-equipment-toolbar,
  .engine-player-equipment-item,
  .engine-leaderboard-head,
  .engine-leaderboard-prize-row {
    grid-template-columns: 1fr;
  }

  .engine-equipment-list-scroll {
    max-height: 240px;
  }

  .engine-panel-scroll {
    max-height: calc(100vh - 180px);
  }

  .engine-equipment-wide {
    grid-column: auto;
  }

  .engine-leaderboard-head {
    align-items: stretch;
    flex-direction: column;
  }
}

.combat-layout {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.combat-stage {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.room-lobby-panel.hidden,
.live-match-hero.hidden,
.match-focus-panel.hidden,
.ability-dock-panel.hidden,
.log-panel.hidden {
  display: none;
}

.room-lobby-panel {
  display: grid;
  gap: 18px;
}

.room-lobby-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.room-lobby-head h2 {
  margin: 0 0 8px;
}

.room-lobby-pills,
.room-lobby-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.room-lobby-pills {
  justify-content: flex-end;
}

.room-lobby-members,
.room-invite-panel,
.room-settings-panel {
  display: grid;
  gap: 12px;
}

.room-lobby-member-grid,
.room-invite-list,
.room-settings-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.room-invite-panel,
.room-settings-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
}

.room-settings-panel {
  background:
    linear-gradient(135deg, rgba(255, 199, 92, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.035);
}

.throwndown-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.throwndown-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 212, 118, 0.4);
  border-radius: 8px;
  color: #ffe4a6;
  background: rgba(126, 75, 16, 0.22);
}

.throwndown-fighters,
.throwndown-bid-fields,
.throwndown-equipment-grid {
  display: grid;
  gap: 10px;
}

.throwndown-fighters {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.throwndown-fighter-entry {
  display: grid;
  gap: 8px;
}

.throwndown-fighter-status {
  display: flex;
  justify-content: flex-end;
}

.ready-pill {
  color: var(--ok);
  border-color: rgba(99, 217, 140, 0.4);
}

.throwndown-equipment {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.throwndown-equipment summary {
  cursor: pointer;
  color: var(--accent-soft);
  font-weight: 800;
}

.throwndown-equipment-grid {
  margin-top: 10px;
}

.throwndown-equipment-grid div {
  display: grid;
  gap: 3px;
}

.throwndown-equipment-grid span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.throwndown-pool,
.throwndown-bid-controls {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.throwndown-bid-fields {
  grid-template-columns: minmax(0, 1fr) minmax(110px, 150px);
}

.throwndown-bid-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.throwndown-bid-row span {
  overflow-wrap: anywhere;
}

.room-invite-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.hero {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.astra-extract-button {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  z-index: 92;
  min-height: 48px;
  max-width: min(220px, calc(100vw - 32px));
  padding: 0 16px;
  border: 1px solid rgba(255, 214, 118, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(52, 31, 9, 0.98), rgba(18, 12, 6, 0.96)),
    linear-gradient(90deg, rgba(255, 214, 118, 0.18), rgba(255, 139, 74, 0.16));
  color: #fff6d5;
  font-weight: 850;
  letter-spacing: 0;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(12, 8, 4, 0.82),
    0 0 18px rgba(255, 194, 86, 0.22);
  cursor: pointer;
  touch-action: manipulation;
}

.astra-extract-button[hidden] {
  display: none !important;
}

.astra-extract-button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  filter: saturate(0.72);
}

.astra-extract-button:not(:disabled):hover {
  border-color: rgba(255, 230, 144, 0.9);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(12, 8, 4, 0.82),
    0 0 24px rgba(255, 194, 86, 0.32);
}

.shell-drawer .astra-extract-button {
  position: static;
  width: 100%;
  max-width: none;
  min-height: 46px;
  justify-self: stretch;
}

.jungle-extraction-summary-layer {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 7, 9, 0.76);
  backdrop-filter: blur(10px);
}

.jungle-extraction-summary-layer[hidden] {
  display: none !important;
}

.jungle-extraction-summary-modal {
  width: min(620px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(255, 224, 144, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(15, 31, 32, 0.98), rgba(6, 12, 13, 0.98)),
    linear-gradient(135deg, rgba(255, 214, 118, 0.12), rgba(74, 209, 154, 0.10));
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.62);
}

.jungle-extraction-summary-head {
  display: grid;
  gap: 4px;
}

.jungle-extraction-summary-head h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.jungle-extraction-reward-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.jungle-extraction-reward-strip span,
.jungle-extraction-summary-grid section {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.jungle-extraction-reward-strip span {
  display: grid;
  gap: 3px;
  padding: 12px;
}

.jungle-extraction-reward-strip small,
.jungle-extraction-summary-grid h3 {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.jungle-extraction-reward-strip strong {
  font-size: 1.08rem;
  color: #fff3c2;
}

.jungle-extraction-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.jungle-extraction-summary-grid section {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
}

.jungle-extraction-summary-grid h3 {
  margin: 0;
}

.jungle-extraction-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.jungle-extraction-summary-row:first-of-type {
  border-top: 0;
}

.jungle-extraction-summary-row span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.jungle-extraction-summary-row strong {
  color: var(--accent-soft);
}

.jungle-extraction-summary-row.empty span,
.jungle-extraction-summary-row.empty strong {
  color: var(--muted);
}

@media (max-width: 620px) {
  .jungle-extraction-summary-modal {
    padding: 16px;
  }

  .jungle-extraction-reward-strip,
  .jungle-extraction-summary-grid {
    grid-template-columns: 1fr;
  }
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.pill.online {
  color: var(--player);
  border-color: rgba(105, 212, 255, 0.34);
}

.pill.pending {
  color: var(--accent-soft);
  border-color: rgba(255, 212, 118, 0.34);
}

.pill.offline {
  color: var(--danger);
  border-color: rgba(255, 107, 87, 0.34);
}

.empty-state {
  text-align: center;
}

.empty-state.hidden,
.board-wrap.hidden {
  display: none;
}

.board-wrap {
  --board-width: 20;
  --board-height: 20;
  position: relative;
  padding: 16px;
  display: grid;
  gap: 14px;
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(14, 29, 36, 0.96), rgba(7, 16, 20, 0.96)),
    radial-gradient(circle at top, rgba(105, 212, 255, 0.08), transparent 45%);
}

.board-stage {
  position: relative;
  width: min(100%, calc(var(--board-width) * clamp(18px, 3.2vw, 36px)));
  max-width: 100%;
  aspect-ratio: var(--board-width) / var(--board-height);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(105, 212, 255, 0.32);
  border-radius: 8px;
  background: #010304;
  box-shadow:
    0 0 0 1px rgba(8, 17, 22, 0.75),
    0 14px 34px rgba(0, 0, 0, 0.34);
}

.board-image {
  display: none;
  width: 100%;
  max-width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(105, 212, 255, 0.18);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.26);
}

.board-image.visible {
  display: block;
}

.board {
  --board-size: 8;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(var(--board-size), minmax(0, 1fr));
  grid-template-rows: repeat(var(--board-height), minmax(0, 1fr));
  gap: 0;
  padding: 0;
  will-change: transform;
}

.bullet-stream-layer {
  position: absolute;
  inset: 0;
  z-index: 73;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.board.no-image {
  position: relative;
  inset: auto;
}

.board.browser-rendered.no-image {
  position: absolute;
  inset: 0;
}

.board.astra-canvas-board {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transform: none !important;
}

.astra-live-canvas {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  user-select: none;
}

.tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: transparent;
  pointer-events: none;
}

.tile.terrain-cover::after,
.tile.terrain-floor-plant::after,
.tile.terrain-wall-plant::after {
  content: "";
  position: absolute;
  inset: 8%;
  z-index: 3;
  pointer-events: none;
  border-radius: 2px;
  opacity: 0;
  mix-blend-mode: screen;
}

.board.interact-enabled .tile {
  pointer-events: auto;
}

.board.no-image:not(.browser-rendered) .tile {
  border: 1px solid rgba(105, 212, 255, 0.14);
  background: rgba(0, 0, 0, 0.96);
}

.board.browser-rendered .tile {
  background-color: rgba(0, 0, 0, 0.98);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 0;
  box-shadow: none;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
}

.board.browser-rendered .tile.textured-tile {
  background-color: #24352c;
}

.board.browser-rendered:not(.full-vision) .tile.fog-tile {
  background-image: none !important;
  background-color: #010304 !important;
  box-shadow: inset 0 0 0 1px rgba(105, 212, 255, 0.05);
}

.board.browser-rendered:not(.full-vision) .tile.fog-tile::after {
  display: none !important;
}

.astra-hidden-by-fog {
  display: none !important;
}

.board.browser-rendered .tile.terrain-cover::after,
.board.browser-rendered .tile.terrain-floor-plant::after,
.board.browser-rendered .tile.terrain-wall-plant::after {
  display: none;
}

.astra-foliage-overlay {
  --foliage-rotation: 0deg;
  --foliage-scale-x: 1;
  position: absolute;
  z-index: 10;
  pointer-events: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.94;
  transform: rotate(var(--foliage-rotation)) scaleX(var(--foliage-scale-x));
  transform-origin: center;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.24));
}

.astra-foliage-plant {
  opacity: 0.98;
  background-size: 112% 112%;
}

.astra-foliage-floor-plant,
.astra-foliage-floor-plant-alt {
  opacity: 0.9;
  background-size: 86% 86%;
}

.astra-foliage-wall-plant {
  opacity: 0.96;
  background-size: 108% 108%;
}

.astra-preview-live .board-stage {
  width: min(100%, calc(var(--board-width) * clamp(30px, 4.4vw, 54px)));
  background:
    linear-gradient(180deg, rgba(9, 18, 13, 0.96), rgba(3, 8, 6, 0.98)),
    radial-gradient(circle at top, rgba(142, 210, 96, 0.12), transparent 52%);
}

.astra-preview-board .astra-preview-tile {
  background-color: #223326;
  background-position: center;
  background-repeat: no-repeat;
  background-size: calc(100% + 1px) calc(100% + 1px);
  border: 1px solid rgba(5, 10, 7, 0.34);
}

.astra-preview-board .astra-tile-floor {
  background-color: #3f5630;
}

.astra-preview-board .astra-tile-floor-alt {
  background-color: #465f34;
}

.astra-preview-board .astra-tile-wall {
  background-color: #39413c;
  box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.22);
}

.astra-preview-board .astra-tile-wall-alt,
.astra-preview-board .astra-tile-wall-plant {
  background-color: #303f38;
  box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.26);
}

.astra-preview-board .astra-tile-water {
  background-color: #244c68;
  box-shadow: inset 0 0 0 999px rgba(38, 91, 166, 0.22);
}

.astra-preview-board .astra-tile-mud {
  background-color: #594531;
  box-shadow: inset 0 0 0 999px rgba(93, 62, 36, 0.22);
}

.astra-preview-board .astra-tile-plant {
  background-color: #335f2f;
  box-shadow: inset 0 0 0 999px rgba(65, 133, 49, 0.18);
}

.astra-preview-board .astra-tile-floor-plant {
  background-color: #3c6636;
  box-shadow: inset 0 0 0 999px rgba(65, 133, 49, 0.2);
}

.astra-preview-board .astra-tile-floor-plant-alt {
  background-color: #3f6a37;
  box-shadow: inset 0 0 0 999px rgba(65, 133, 49, 0.16);
}

.astra-preview-object,
.astra-preview-entity {
  position: absolute;
  z-index: 8;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.astra-preview-object {
  width: clamp(14px, 2.2vw, 28px);
  height: clamp(14px, 2.2vw, 28px);
}

.astra-preview-object.is-clickable {
  pointer-events: auto;
  cursor: pointer;
}

.astra-preview-object.astra-object-chest {
  width: clamp(22px, 3.1vw, 38px);
  height: clamp(18px, 2.5vw, 30px);
  border: 3px solid #2d1b08;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 236, 143, 0.62) 0 16%, transparent 17%),
    linear-gradient(90deg, #8b5519 0 39%, #f4d36a 40% 60%, #8b5519 61% 100%);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.72),
    0 0 0 2px rgba(255, 210, 95, 0.32),
    0 0 18px rgba(255, 193, 79, 0.34);
}

.astra-preview-object.astra-object-chest.rarity-common {
  border-color: #20252c;
  background:
    linear-gradient(180deg, rgba(235, 240, 244, 0.58) 0 16%, transparent 17%),
    linear-gradient(90deg, #4e5963 0 39%, #c3cad0 40% 60%, #4e5963 61% 100%);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.72),
    0 0 0 2px rgba(190, 200, 208, 0.26),
    0 0 15px rgba(190, 200, 208, 0.24);
}

.astra-preview-object.astra-object-chest.rarity-uncommon {
  border-color: #183a22;
  background:
    linear-gradient(180deg, rgba(226, 255, 214, 0.62) 0 16%, transparent 17%),
    linear-gradient(90deg, #347544 0 39%, #94e072 40% 60%, #347544 61% 100%);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.72),
    0 0 0 2px rgba(132, 222, 112, 0.3),
    0 0 18px rgba(132, 222, 112, 0.32);
}

.astra-preview-object.astra-object-chest.rarity-rare {
  border-color: #12345e;
  background:
    linear-gradient(180deg, rgba(220, 244, 255, 0.64) 0 16%, transparent 17%),
    linear-gradient(90deg, #2469b9 0 39%, #6dc8ff 40% 60%, #2469b9 61% 100%);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.72),
    0 0 0 2px rgba(109, 200, 255, 0.34),
    0 0 20px rgba(109, 200, 255, 0.42);
}

.astra-preview-object.astra-object-chest.rarity-epic,
.astra-preview-object.astra-object-chest.rarity-special {
  border-color: #45216c;
  background:
    linear-gradient(180deg, rgba(255, 232, 255, 0.64) 0 16%, transparent 17%),
    linear-gradient(90deg, #7d38c7 0 39%, #ff8de6 40% 60%, #7d38c7 61% 100%);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.72),
    0 0 0 2px rgba(255, 141, 230, 0.32),
    0 0 20px rgba(255, 141, 230, 0.38);
}

.astra-preview-object.astra-object-chest.rarity-legendary {
  border-color: #6a2a0d;
  background:
    linear-gradient(180deg, rgba(255, 247, 199, 0.68) 0 16%, transparent 17%),
    linear-gradient(90deg, #ba4f12 0 39%, #ffb24d 40% 60%, #ba4f12 61% 100%);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.72),
    0 0 0 2px rgba(255, 178, 77, 0.34),
    0 0 22px rgba(255, 178, 77, 0.44);
}

.astra-preview-object.astra-object-chest.state-opened {
  opacity: 0.55;
  transform: translate(-50%, -50%) scale(0.88);
}

.astra-preview-object.astra-object-chest.has-label {
  display: grid;
  place-items: center;
  color: #271605;
  font-size: clamp(10px, 1.2vw, 13px);
  font-weight: 900;
  line-height: 1;
}

.astra-preview-object.astra-object-chest.is-clickable::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 2px solid rgba(255, 226, 126, 0.7);
  border-radius: 8px;
  pointer-events: none;
  animation: oreMinePulse 1.1s ease-in-out infinite alternate;
}

.astra-preview-object.astra-object-trap {
  width: 0;
  height: 0;
  border-left: clamp(10px, 1.6vw, 18px) solid transparent;
  border-right: clamp(10px, 1.6vw, 18px) solid transparent;
  border-bottom: clamp(18px, 2.8vw, 34px) solid #7e4acf;
  filter: drop-shadow(0 2px 0 #19101f);
}

.astra-preview-object.astra-object-mine {
  width: clamp(18px, 2.7vw, 34px);
  height: clamp(18px, 2.7vw, 34px);
  border-radius: 45% 45% 50% 50%;
  background:
    radial-gradient(ellipse at 50% 12%, #573718 0 12%, transparent 13%),
    radial-gradient(ellipse at 35% 42%, rgba(255, 213, 92, 0.42), transparent 27%),
    linear-gradient(90deg, #8f3514 0 19%, #ff7f23 20% 36%, #b84917 37% 57%, #ff922e 58% 76%, #793010 77% 100%);
  border: 2px solid rgba(69, 28, 10, 0.92);
  filter:
    drop-shadow(0 2px 0 rgba(30, 12, 4, 0.78))
    drop-shadow(0 0 9px rgba(255, 136, 35, 0.42));
}

.astra-preview-object.astra-object-mine.state-triggered {
  opacity: 0.42;
  transform: translate(-50%, -50%) scale(1.16);
  filter:
    drop-shadow(0 2px 0 rgba(30, 12, 4, 0.65))
    drop-shadow(0 0 14px rgba(255, 80, 24, 0.38));
}

.astra-preview-object.astra-object-gojo-blue-orb {
  width: clamp(32px, 4.8vw, 58px);
  height: clamp(32px, 4.8vw, 58px);
  border-radius: 999px;
  border: 1.5px solid rgba(40, 75, 155, 0.82);
  background:
    radial-gradient(circle at 38% 34%, #1f57c8 0 12%, #1647ae 24%, #10388e 46%, #0a2a70 68%, #071d4c 100%),
    repeating-radial-gradient(circle, transparent 0 14%, rgba(80, 120, 205, 0.16) 15% 17%, transparent 18% 25%);
  box-shadow:
    0 0 0 9px rgba(16, 56, 142, 0.12),
    0 0 22px rgba(46, 111, 216, 0.24);
  overflow: visible;
  animation: gojoBlueOrbPulse 1800ms ease-in-out infinite;
}

.astra-preview-object.astra-object-gojo-blue-orb::before {
  content: "";
  position: absolute;
  inset: -58%;
  border-radius: inherit;
  pointer-events: none;
  background:
    conic-gradient(from 0deg, transparent 0 9deg, rgba(70, 130, 220, 0.2) 10deg 14deg, transparent 15deg 36deg),
    radial-gradient(circle, transparent 0 36%, rgba(16, 56, 142, 0.16) 44%, transparent 68%);
  filter: drop-shadow(0 0 8px rgba(47, 114, 218, 0.28));
  animation: gojoBluePullSpiral 3000ms linear infinite;
}

.astra-preview-object.astra-object-gojo-blue-orb::after {
  content: "";
  position: absolute;
  inset: -86%;
  border-radius: inherit;
  pointer-events: none;
  background:
    repeating-conic-gradient(from 12deg, transparent 0 7deg, rgba(95, 155, 235, 0.28) 8deg 9deg, transparent 10deg 22deg),
    radial-gradient(circle, rgba(7, 29, 76, 0.06), transparent 66%);
  animation: gojoBluePullSpiral 1600ms ease-in-out infinite reverse;
}

.astra-preview-object.astra-object-trap-plate {
  width: clamp(7px, 0.85vw, 13px);
  height: clamp(7px, 0.85vw, 13px);
  border: 1px solid rgba(244, 220, 156, 0.72);
  border-radius: 2px;
  background: rgba(116, 86, 40, 0.62);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.72),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.astra-preview-object.astra-object-trap-plate.state-triggered {
  opacity: 0.62;
}

.astra-preview-object.astra-object-loot {
  width: clamp(17px, 2.5vw, 32px);
  height: clamp(17px, 2.5vw, 32px);
  background: linear-gradient(135deg, #fff6bc, #f4c84d 48%, #a96f16);
  clip-path: polygon(50% 0%, 62% 34%, 98% 35%, 68% 56%, 79% 92%, 50% 70%, 21% 92%, 32% 56%, 2% 35%, 38% 34%);
  filter:
    drop-shadow(0 2px 0 rgba(31, 17, 3, 0.78))
    drop-shadow(0 0 9px rgba(255, 212, 82, 0.52));
}

.astra-preview-object.astra-object-loot.rarity-uncommon {
  background: linear-gradient(135deg, #f8ffd0, #8fe86f 48%, #3c8d38);
}

.astra-preview-object.astra-object-loot.rarity-rare {
  background: linear-gradient(135deg, #f5fbff, #6dc8ff 48%, #2469b9);
}

.astra-preview-object.astra-object-loot.rarity-epic,
.astra-preview-object.astra-object-loot.rarity-special {
  background: linear-gradient(135deg, #fff4ff, #ff8de6 46%, #7d38c7);
}

.astra-preview-object.astra-object-loot.rarity-legendary {
  background: linear-gradient(135deg, #fff7c7, #ffb24d 48%, #ba4f12);
}

.astra-preview-object.astra-object-ooze-puddle {
  width: clamp(24px, 3.7vw, 46px);
  height: clamp(16px, 2.5vw, 30px);
  border-radius: 54% 46% 58% 42%;
  border: 1px solid rgba(205, 255, 105, 0.68);
  background:
    radial-gradient(circle at 34% 36%, rgba(220, 255, 122, 0.86) 0 8%, transparent 10%),
    radial-gradient(circle at 66% 58%, rgba(210, 255, 116, 0.72) 0 7%, transparent 9%),
    radial-gradient(ellipse at 50% 50%, rgba(75, 255, 70, 0.7), rgba(22, 140, 45, 0.62) 58%, rgba(6, 40, 18, 0.18) 100%);
  box-shadow:
    0 0 0 7px rgba(49, 255, 73, 0.08),
    0 0 18px rgba(86, 255, 77, 0.34);
  animation: oozePuddleBubble 1400ms ease-in-out infinite alternate;
}

.astra-preview-object.astra-object-ore {
  width: clamp(20px, 3vw, 36px);
  height: clamp(20px, 3vw, 36px);
  border-radius: 5px;
  background: rgba(30, 34, 24, 0.5);
  filter:
    drop-shadow(0 2px 0 rgba(7, 8, 5, 0.72))
    drop-shadow(0 0 6px rgba(0, 0, 0, 0.32));
}

.astra-preview-object.astra-object-ore.can-mine {
  filter:
    drop-shadow(0 2px 0 rgba(7, 8, 5, 0.72))
    drop-shadow(0 0 9px rgba(112, 222, 118, 0.82))
    drop-shadow(0 0 18px rgba(112, 222, 118, 0.46));
}

.astra-preview-object.astra-object-ore.can-mine::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 8px;
  border: 2px solid rgba(132, 240, 126, 0.72);
  pointer-events: none;
  animation: oreMinePulse 1.15s ease-in-out infinite alternate;
}

.astra-preview-object.has-icon {
  width: clamp(18px, 2.8vw, 34px);
  height: clamp(18px, 2.8vw, 34px);
  border: 0;
  background: transparent;
  filter: none;
}

.astra-preview-object.astra-object-trap-plate.has-icon {
  width: clamp(7px, 0.85vw, 13px);
  height: clamp(7px, 0.85vw, 13px);
}

.astra-preview-object.has-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter:
    drop-shadow(0 2px 0 rgba(10, 12, 13, 0.7))
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.12));
}

.astra-preview-object.astra-object-ore.has-icon {
  width: clamp(20px, 3vw, 36px);
  height: clamp(20px, 3vw, 36px);
  filter:
    drop-shadow(0 2px 0 rgba(7, 8, 5, 0.72))
    drop-shadow(0 0 6px rgba(0, 0, 0, 0.32));
}

.astra-preview-object.astra-object-ore.has-icon.can-mine {
  filter:
    drop-shadow(0 2px 0 rgba(7, 8, 5, 0.72))
    drop-shadow(0 0 9px rgba(112, 222, 118, 0.82))
    drop-shadow(0 0 18px rgba(112, 222, 118, 0.46));
}

@keyframes oreMinePulse {
  from {
    opacity: 0.42;
    transform: scale(0.94);
  }
  to {
    opacity: 0.92;
    transform: scale(1.06);
  }
}

.astra-preview-entity {
  width: clamp(22px, 3vw, 42px);
  height: clamp(22px, 3vw, 42px);
  border: 3px solid #162012;
  border-radius: 999px;
  background: #f1f3e8;
  background-position: center;
  background-size: cover;
}

.astra-preview-entity.enemy {
  width: clamp(32px, 4vw, 58px);
  height: clamp(32px, 4vw, 58px);
  border-color: #2b1111;
  background: #b64747;
}

.board:not(.no-image) .tile {
  background: rgba(0, 0, 0, 0.98);
}

.board:not(.no-image).full-vision .tile,
.board:not(.no-image) .tile.visible-tile {
  background: transparent;
}

.board:not(.no-image).full-vision .tile.terrain-cover::after,
.board:not(.no-image) .tile.visible-tile.terrain-cover::after {
  opacity: 0.58;
  background:
    radial-gradient(circle at 32% 32%, rgba(120, 193, 74, 0.62), transparent 35%),
    radial-gradient(circle at 68% 38%, rgba(61, 136, 58, 0.64), transparent 38%),
    radial-gradient(circle at 52% 70%, rgba(37, 96, 51, 0.56), transparent 42%);
}

.board:not(.no-image).full-vision .tile.terrain-floor-plant::after,
.board:not(.no-image) .tile.visible-tile.terrain-floor-plant::after {
  inset: 18%;
  opacity: 0.5;
  background:
    radial-gradient(ellipse at center, rgba(142, 210, 96, 0.56), transparent 52%),
    linear-gradient(45deg, transparent 38%, rgba(88, 164, 74, 0.52) 40%, transparent 62%);
}

.board:not(.no-image).full-vision .tile.terrain-wall-plant::after,
.board:not(.no-image) .tile.visible-tile.terrain-wall-plant::after {
  inset: 5% 10%;
  opacity: 0.64;
  background:
    linear-gradient(90deg, transparent 10%, rgba(64, 135, 63, 0.64) 32%, transparent 55%),
    radial-gradient(circle at 70% 28%, rgba(128, 188, 78, 0.5), transparent 35%);
}

.board.no-image:not(.browser-rendered) .tile.visible-tile {
  background: rgba(255, 255, 255, 0.02);
}

.board.browser-rendered.no-image {
  background: #263a2f;
}

.board.browser-rendered.no-image .tile {
  background-color: #010304;
}

.board.browser-rendered.no-image .tile.visible-tile {
  background-color: #263a2f;
}

.board.browser-rendered.no-image .tile.visible-tile[data-terrain="f"],
.board.browser-rendered.no-image .tile.visible-tile[data-terrain="2"] {
  background-color: #273238;
}

.board.browser-rendered.no-image .tile.visible-tile[data-terrain="c"],
.board.browser-rendered.no-image .tile.visible-tile[data-terrain="4"],
.board.browser-rendered.no-image .tile.visible-tile[data-terrain="p"],
.board.browser-rendered.no-image .tile.visible-tile[data-terrain="6"],
.board.browser-rendered.no-image .tile.visible-tile[data-terrain="s"],
.board.browser-rendered.no-image .tile.visible-tile[data-terrain="7"] {
  background-color: #2e462f;
}

.board.browser-rendered .tile.visible-tile.textured-tile {
  background-color: #263a2f;
}

.board.browser-rendered .tile.visible-tile.textured-tile[data-terrain="f"],
.board.browser-rendered .tile.visible-tile.textured-tile[data-terrain="2"] {
  background-color: #273238;
}

body.performance-mode.live-match-view .board-stage,
body.performance-mode.live-match-view .health-hud,
body.performance-mode.live-match-view .status-rail,
body.performance-mode.live-match-view .move-button,
body.performance-mode.live-match-view .quick-action-button,
body.performance-mode.live-match-view .ability-dock-panel {
  backdrop-filter: none !important;
}

body[data-performance-level="1"].live-match-view .marker-facing {
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.92));
}

body[data-performance-level="1"].live-match-view .marker-block-arc {
  filter: drop-shadow(0 0 5px rgba(80, 180, 255, 0.32));
}

body[data-performance-level="2"].live-match-view .marker,
body[data-performance-level="2"].live-match-view .move-button,
body[data-performance-level="2"].live-match-view .quick-action-button {
  box-shadow: 0 0 0 1px rgba(105, 212, 255, 0.28) !important;
}

body[data-performance-level="2"].live-match-view .tile.terrain-cover::after,
body[data-performance-level="2"].live-match-view .tile.terrain-floor-plant::after,
body[data-performance-level="2"].live-match-view .tile.terrain-wall-plant::after {
  opacity: 0.36 !important;
}

body[data-performance-level="3"].live-match-view .tile {
  background-image: none !important;
}

body[data-performance-level="3"].live-match-view .tile.terrain-cover::after,
body[data-performance-level="3"].live-match-view .tile.terrain-floor-plant::after,
body[data-performance-level="3"].live-match-view .tile.terrain-wall-plant::after {
  display: none !important;
}

body[data-performance-level="3"].live-match-view .marker,
body[data-performance-level="3"].live-match-view .mobile-look-cursor,
body[data-performance-level="3"].live-match-view .move-button,
body[data-performance-level="3"].live-match-view .quick-action-button,
body[data-performance-level="3"].live-match-view .ability-button,
body[data-performance-level="3"].live-match-view .health-hud {
  box-shadow: none !important;
}

body[data-performance-level="3"].live-match-view .marker-facing {
  filter: none !important;
}

body[data-performance-level="3"].live-match-view .marker-block-arc,
body[data-performance-level="3"].live-match-view .entity-action-badge,
body[data-performance-level="3"].live-match-view .dodge-trail-effect,
body[data-performance-level="3"].live-match-view .melee-swing-effect,
body[data-performance-level="3"].live-match-view .muzzle-flash-effect,
body[data-performance-level="3"].live-match-view .bullet-casing-effect,
body[data-performance-level="3"].live-match-view .astra-ground-impact,
body[data-performance-level="3"].live-match-view .damage-popup {
  box-shadow: none !important;
  filter: none !important;
}

.board.browser-rendered.full-vision .tile.terrain-cover::after,
.board.browser-rendered .tile.visible-tile.terrain-cover::after {
  opacity: 0.58;
  background:
    radial-gradient(circle at 32% 32%, rgba(120, 193, 74, 0.62), transparent 35%),
    radial-gradient(circle at 68% 38%, rgba(61, 136, 58, 0.64), transparent 38%),
    radial-gradient(circle at 52% 70%, rgba(37, 96, 51, 0.56), transparent 42%);
}

.board.browser-rendered.full-vision .tile.terrain-floor-plant::after,
.board.browser-rendered .tile.visible-tile.terrain-floor-plant::after {
  inset: 18%;
  opacity: 0.5;
  background:
    radial-gradient(ellipse at center, rgba(142, 210, 96, 0.56), transparent 52%),
    linear-gradient(45deg, transparent 38%, rgba(88, 164, 74, 0.52) 40%, transparent 62%);
}

.board.browser-rendered.full-vision .tile.terrain-wall-plant::after,
.board.browser-rendered .tile.visible-tile.terrain-wall-plant::after {
  inset: 5% 10%;
  opacity: 0.64;
  background:
    linear-gradient(90deg, transparent 10%, rgba(64, 135, 63, 0.64) 32%, transparent 55%),
    radial-gradient(circle at 70% 28%, rgba(128, 188, 78, 0.5), transparent 35%);
}

.tile.selected {
  box-shadow: inset 0 0 0 2px rgba(255, 212, 118, 0.52);
}

.tile.player-focus {
  box-shadow:
    inset 0 0 0 2px rgba(105, 212, 255, 0.72),
    0 0 0 1px rgba(8, 18, 22, 0.9);
  background: rgba(105, 212, 255, 0.08);
}

.tile.interactable {
  box-shadow: inset 0 0 0 2px rgba(255, 212, 118, 0.48);
  background: rgba(255, 212, 118, 0.08);
  cursor: pointer;
}

.tile.mine-target {
  box-shadow: inset 0 0 0 2px rgba(120, 186, 255, 0.58);
  background: rgba(120, 186, 255, 0.1);
}

.tile.pumpkin-mine-place-tile {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tile-target-color, #ff9f35) 66%, transparent);
  background: color-mix(in srgb, var(--tile-target-color, #ff9f35) 18%, transparent);
}

.tile.pumpkin-mine-place-tile.valid-target {
  cursor: crosshair;
}

.tile.pumpkin-mine-place-tile.invalid-target {
  opacity: 0.62;
  filter: saturate(0.72);
}

.tile.gojo-blue-target-tile {
  box-shadow:
    inset 0 0 0 2px color-mix(in srgb, var(--tile-target-color, #123b91) 70%, transparent),
    inset 0 0 18px color-mix(in srgb, var(--tile-target-color, #123b91) 30%, transparent);
  background: color-mix(in srgb, var(--tile-target-color, #123b91) 14%, transparent);
}

.tile.gojo-blue-target-tile.valid-target {
  cursor: crosshair;
}

.tile.gojo-blue-target-tile.invalid-target {
  opacity: 0.5;
  filter: saturate(0.65);
}

.tile.gojo-blue-target-tile.gojo-blue-orb-center::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 38% 34%, #1f57c8 0 18%, #1647ae 34%, #10388e 56%, rgba(7, 29, 76, 0.08) 78% 100%);
  box-shadow:
    0 0 0 2px rgba(40, 75, 155, 0.72),
    0 0 14px rgba(46, 111, 216, 0.34);
  pointer-events: none;
}

.tile.revive-target {
  box-shadow: inset 0 0 0 2px rgba(255, 218, 84, 0.66);
  background: rgba(255, 218, 84, 0.12);
}

.marker {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.85);
  will-change: transform;
  position: relative;
  z-index: 2;
}

.marker.player {
  color: var(--player);
  font-size: 1.1rem;
}

.marker.enemy {
  color: var(--enemy);
}

.marker.has-image {
  width: 100%;
  height: 100%;
  margin: 0;
}

.marker-media {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--entity-orb-size, 82cqmin);
  height: var(--entity-orb-size, 82cqmin);
  overflow: hidden;
  border-radius: 999px;
  background: rgba(4, 12, 16, 0.9);
  border: 1px solid rgba(105, 212, 255, 0.66);
  box-shadow:
    0 0 0 1px rgba(3, 9, 12, 0.85),
    0 0 14px rgba(105, 212, 255, 0.4);
  transform: translate(-50%, -50%);
  transition: width 160ms ease, height 160ms ease, filter 160ms ease;
  z-index: 2;
}

.marker.enemy.has-image .marker-media {
  border-radius: 12px;
  border-color: rgba(255, 105, 98, 0.72);
  box-shadow:
    0 0 0 1px rgba(3, 9, 12, 0.85),
    0 0 14px rgba(255, 105, 98, 0.35);
}

.marker-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.marker.entity-marker {
  --entity-radius-scale: 1;
  --entity-orb-size: 82cqmin;
  --mahoraga-wheel-size: 92%;
  position: absolute;
  z-index: 7;
  pointer-events: none;
  box-sizing: border-box;
  transform-origin: center;
  container-type: size;
}

.marker.entity-marker.has-image {
  margin: 0;
}

.marker.entity-marker.tank-texture-marker {
  overflow: visible;
  z-index: 8;
}

.marker.entity-marker.instant-transmission-target {
  pointer-events: auto;
  cursor: crosshair;
  z-index: 30;
  filter:
    drop-shadow(0 0 8px var(--instant-target-color, #55b7ff))
    drop-shadow(0 0 18px rgba(85, 183, 255, 0.6));
}

.marker.entity-marker.instant-transmission-target .marker-media,
.marker.entity-marker.instant-transmission-target .marker-letter,
.marker.entity-marker.instant-transmission-target .tank-texture {
  box-shadow:
    0 0 0 3px var(--instant-target-color, #55b7ff),
    0 0 20px var(--instant-target-color, #55b7ff);
}

.marker.entity-marker.celebrimbor-halo-marked {
  pointer-events: auto;
  cursor: crosshair;
  z-index: 29;
  filter:
    drop-shadow(0 0 7px var(--celebrimbor-blue, #64dfff))
    drop-shadow(0 0 16px rgba(100, 223, 255, 0.58));
}

.marker.entity-marker.celebrimbor-halo-marked .marker-media,
.marker.entity-marker.celebrimbor-halo-marked .marker-letter,
.marker.entity-marker.celebrimbor-halo-marked .tank-texture {
  box-shadow:
    0 0 0 2px var(--celebrimbor-blue, #64dfff),
    0 0 18px rgba(100, 223, 255, 0.76);
}

.marker.entity-marker.celebrimbor-rocket-locked {
  z-index: 31;
  animation: celebrimborTargetPulse 0.55s ease-out 2;
  filter:
    drop-shadow(0 0 10px var(--celebrimbor-blue, #64dfff))
    drop-shadow(0 0 24px rgba(100, 223, 255, 0.72));
}

.marker.entity-marker.genos-target-locked {
  z-index: 32;
  animation: genosTargetIgnite 0.42s ease-out 3;
  filter:
    drop-shadow(0 0 10px var(--genos-orange, #ffb347))
    drop-shadow(0 0 26px rgba(255, 138, 36, 0.78));
}

.marker.entity-marker.genos-target-locked .marker-media,
.marker.entity-marker.genos-target-locked .marker-letter,
.marker.entity-marker.genos-target-locked .tank-texture {
  box-shadow:
    0 0 0 2px var(--genos-orange, #ffb347),
    0 0 20px rgba(255, 138, 36, 0.82),
    0 0 34px rgba(255, 241, 184, 0.45);
}

.marker.entity-marker.unlimited-void-frozen {
  z-index: 33;
  filter:
    grayscale(0.42)
    brightness(1.2)
    drop-shadow(0 0 9px rgba(214, 248, 255, 0.86))
    drop-shadow(0 0 24px rgba(88, 156, 255, 0.62));
  animation: unlimitedVoidFreeze 680ms steps(2, end) infinite;
}

.marker.entity-marker.unlimited-void-frozen::before,
.marker.entity-marker.unlimited-void-frozen::after,
.marker.entity-marker.unlimited-void-focused::before {
  content: "";
  position: absolute;
  inset: -42%;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
}

.marker.entity-marker.unlimited-void-frozen::before {
  border: 2px dashed rgba(226, 248, 255, 0.72);
  box-shadow:
    0 0 18px rgba(122, 199, 255, 0.6),
    inset 0 0 18px rgba(255, 255, 255, 0.24);
  animation: astraStatusSpin 1.8s linear infinite;
}

.marker.entity-marker.unlimited-void-frozen::after {
  inset: -74%;
  background:
    repeating-conic-gradient(from 0deg, transparent 0 7deg, rgba(255, 255, 255, 0.78) 7deg 9deg, transparent 9deg 18deg),
    radial-gradient(circle, rgba(169, 222, 255, 0.26), transparent 62%);
  opacity: 0.76;
  mix-blend-mode: screen;
}

.marker.entity-marker.unlimited-void-focused {
  filter:
    brightness(1.12)
    drop-shadow(0 0 7px rgba(159, 219, 255, 0.58))
    drop-shadow(0 0 16px rgba(88, 156, 255, 0.38));
}

.marker.entity-marker.unlimited-void-focused::before {
  inset: -30%;
  border: 1px solid rgba(196, 234, 255, 0.42);
  box-shadow: 0 0 14px rgba(118, 190, 255, 0.26);
}

@keyframes celebrimborTargetPulse {
  0% {
    opacity: 1;
  }
  45% {
    opacity: 0.82;
  }
  100% {
    opacity: 1;
  }
}

@keyframes genosTargetIgnite {
  0% {
    opacity: 0.86;
    transform: scale(0.98);
  }
  45% {
    opacity: 1;
    transform: scale(1.045);
  }
  100% {
    opacity: 0.94;
    transform: scale(1);
  }
}

@keyframes unlimitedVoidFreeze {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.86;
  }
  100% {
    opacity: 1;
  }
}

.tank-texture {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}

.tank-texture img {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  filter:
    drop-shadow(0 2px 3px rgba(0, 0, 0, 0.62))
    drop-shadow(0 0 6px rgba(3, 10, 14, 0.48));
}

.tank-charge-cone {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--tank-charge-range, 800%);
  height: var(--tank-charge-width, 110%);
  transform: rotate(var(--tank-charge-angle, 0deg)) translateY(-50%);
  transform-origin: 0 50%;
  clip-path: polygon(0 48%, 100% 0, 100% 100%, 0 52%);
  opacity: calc(0.12 + (var(--tank-charge-ratio, 0) * 0.28));
  background:
    linear-gradient(90deg, rgba(126, 240, 184, 0.42), rgba(91, 219, 255, 0.13) 55%, rgba(91, 219, 255, 0));
  z-index: 1;
}

.marker.entity-marker.tank-texture-marker.tank-charging {
  filter: none;
}

.tank-texture .tank-hull {
  width: var(--tank-hull-width, 190%);
  height: var(--tank-hull-height, 218%);
  transform: translate(-50%, -50%) rotate(var(--tank-body-angle, 90deg));
  transform-origin: 50% 50%;
  transition: transform 90ms linear;
}

.tank-texture .tank-hull-gun {
  width: var(--tank-hull-gun-width, 58%);
  height: var(--tank-hull-gun-height, 90%);
  transform:
    translate(-50%, calc(-68% - var(--tank-hull-gun-offset, 38%)))
    rotate(var(--tank-body-angle, 90deg));
  transform-origin: 50% 68%;
  transition: transform 90ms linear;
  z-index: 2;
}

.tank-texture .tank-turret {
  width: var(--tank-turret-width, 125%);
  height: var(--tank-turret-height, 164%);
  transform:
    translate(-50%, calc(-1 * var(--tank-turret-pivot-y, 66%)))
    rotate(var(--tank-turret-angle, 90deg));
  transform-origin: 50% var(--tank-turret-pivot-y, 66%);
  transition: transform 90ms linear;
  filter:
    drop-shadow(0 2px 3px rgba(0, 0, 0, 0.68))
    drop-shadow(0 0 7px rgba(118, 231, 255, 0.24));
  z-index: 3;
}

.marker.entity-marker.tank-texture-marker .marker-facing,
.marker.entity-marker.tank-texture-marker .marker-letter {
  display: none;
}

.marker.entity-marker.bow-drawing::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 112%;
  height: 112%;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background:
    conic-gradient(rgba(255, 212, 118, 0.92) var(--draw-angle, 0deg), rgba(255, 255, 255, 0.08) 0deg);
  mask: radial-gradient(circle, transparent 58%, #000 61%);
  opacity: 0.78;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(255, 212, 118, 0.28));
}

.marker.entity-marker.bow-drawing.full-draw::after {
  opacity: 1;
  filter:
    drop-shadow(0 0 8px rgba(255, 212, 118, 0.5))
    drop-shadow(0 0 16px rgba(118, 212, 255, 0.24));
}

.marker.entity-marker.bow-drawing.fuga-drawing::after {
  background:
    conic-gradient(rgba(255, 84, 20, 0.96) var(--draw-angle, 0deg), rgba(255, 218, 112, 0.14) 0deg);
  filter:
    drop-shadow(0 0 8px rgba(255, 84, 20, 0.52))
    drop-shadow(0 0 18px rgba(255, 31, 18, 0.28));
}

.marker.entity-marker.bow-drawing.fuga-drawing {
  filter:
    drop-shadow(0 0 9px rgba(255, 78, 18, 0.72))
    drop-shadow(0 0 18px rgba(118, 16, 8, 0.6));
}

.marker.entity-marker.cursed-reinforced::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 999px;
  border: 4px solid rgba(0, 0, 4, 0.98);
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.08) 0 44%, rgba(0, 0, 0, 0.64) 62%, transparent 73%);
  box-shadow:
    0 0 0 2px rgba(45, 45, 58, 0.45),
    0 0 26px rgba(0, 0, 0, 0.88),
    inset 0 0 22px rgba(255, 255, 255, 0.1);
  z-index: 0;
  pointer-events: none;
}

.marker.entity-marker.cursed-reinforced {
  box-shadow:
    0 0 0 4px rgba(0, 0, 0, 0.72),
    0 0 18px rgba(0, 0, 0, 0.7);
}

.marker.entity-marker.cursed-flame-active {
  filter:
    drop-shadow(0 0 12px rgba(57, 255, 106, 0.72))
    drop-shadow(0 0 22px rgba(137, 255, 54, 0.28));
}

.marker.entity-marker.cursed-flame-active:not(.sandevistan-active)::after {
  content: "";
  position: absolute;
  inset: -18px -12px -8px;
  border-radius: 999px 999px 46% 46%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.78;
  background:
    radial-gradient(ellipse at 50% 70%, rgba(57, 255, 106, 0.28) 0 20%, transparent 52%),
    conic-gradient(from 12deg, transparent 0 9%, rgba(57, 255, 106, 0.62) 10% 17%, transparent 18% 31%, rgba(166, 255, 79, 0.72) 32% 40%, transparent 41% 57%, rgba(57, 255, 106, 0.58) 58% 68%, transparent 69% 100%);
  filter:
    blur(0.4px)
    drop-shadow(0 0 9px rgba(57, 255, 106, 0.68));
  animation: cursed-flame-flicker 0.44s infinite alternate ease-in-out;
}

.marker.entity-marker.fire-active:not(.cursed-flame-active) {
  filter:
    drop-shadow(0 0 10px rgba(255, 94, 24, 0.74))
    drop-shadow(0 0 20px rgba(255, 158, 36, 0.32));
}

.marker.entity-marker.poison-active {
  filter:
    drop-shadow(0 0 9px rgba(106, 255, 86, 0.58))
    drop-shadow(0 0 18px rgba(65, 168, 58, 0.3));
}

.marker.entity-marker.bleed-active {
  filter:
    drop-shadow(0 0 8px rgba(192, 8, 28, 0.62))
    drop-shadow(0 0 16px rgba(105, 5, 18, 0.38));
}

.marker.entity-marker.panic-active {
  animation: astraPanicMarkerJump 0.28s steps(2, end) infinite;
  filter:
    drop-shadow(0 0 9px rgba(255, 150, 44, 0.68))
    drop-shadow(0 0 18px rgba(190, 42, 18, 0.36));
}

.marker.entity-marker.stun-active {
  filter:
    drop-shadow(0 0 9px rgba(255, 238, 114, 0.72))
    drop-shadow(0 0 18px rgba(255, 210, 54, 0.36));
}

.marker.entity-marker.water-prison-active {
  overflow: visible;
  filter:
    drop-shadow(0 0 10px rgba(92, 215, 255, 0.74))
    drop-shadow(0 0 22px rgba(38, 128, 255, 0.34));
}

.water-prison-effect {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(42px, 138%, 126px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 5;
  animation: waterPrisonOrbShift 920ms ease-in-out infinite alternate;
}

.water-prison-orb {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  border: 2px solid rgba(207, 250, 255, 0.78);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.82) 0 9%, transparent 15%),
    radial-gradient(circle at 64% 70%, rgba(94, 214, 255, 0.36) 0 16%, transparent 30%),
    radial-gradient(circle, rgba(144, 230, 255, 0.34), rgba(34, 128, 222, 0.18) 62%, rgba(16, 80, 154, 0.06));
  box-shadow:
    inset 0 0 16px rgba(235, 255, 255, 0.5),
    inset 0 -12px 22px rgba(24, 112, 196, 0.24),
    0 0 16px rgba(94, 214, 255, 0.56);
}

.water-prison-orb::before,
.water-prison-orb::after {
  content: "";
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  border: 1px solid rgba(224, 252, 255, 0.4);
  transform: rotate(24deg) scaleX(0.72);
}

.water-prison-orb::after {
  inset: 23%;
  transform: rotate(-38deg) scaleX(0.58);
  opacity: 0.7;
}

.water-prison-drop {
  position: absolute;
  top: 72%;
  width: 7px;
  height: 11px;
  border-radius: 50% 50% 54% 54%;
  background: linear-gradient(180deg, rgba(240, 255, 255, 0.9), rgba(64, 188, 255, 0.58));
  box-shadow: 0 0 8px rgba(83, 213, 255, 0.64);
  opacity: 0;
  animation: waterPrisonDropFall 840ms ease-in infinite;
}

.water-prison-drop:nth-child(2) {
  left: 22%;
  animation-delay: 40ms;
}

.water-prison-drop:nth-child(3) {
  left: 43%;
  animation-delay: 260ms;
}

.water-prison-drop:nth-child(4) {
  left: 62%;
  animation-delay: 480ms;
}

.water-prison-drop:nth-child(5) {
  left: 76%;
  animation-delay: 660ms;
}

.water-prison-pop-burst {
  position: absolute;
  width: var(--water-pop-size, 72px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 28;
  border: 2px solid rgba(214, 252, 255, 0.84);
  box-shadow:
    inset 0 0 14px rgba(226, 252, 255, 0.52),
    0 0 18px rgba(90, 215, 255, 0.54);
  animation: waterPrisonBubblePop 760ms ease-out forwards;
}

.water-prison-pop-drop {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 10px;
  border-radius: 50%;
  background: rgba(152, 232, 255, 0.82);
  box-shadow: 0 0 8px rgba(104, 216, 255, 0.62);
  animation: waterPrisonPopDrop 760ms ease-out forwards;
}

.water-prison-pop-drop:nth-child(1) { --pop-x: -32px; --pop-y: -16px; }
.water-prison-pop-drop:nth-child(2) { --pop-x: -20px; --pop-y: 24px; }
.water-prison-pop-drop:nth-child(3) { --pop-x: 0px; --pop-y: -34px; }
.water-prison-pop-drop:nth-child(4) { --pop-x: 24px; --pop-y: -22px; }
.water-prison-pop-drop:nth-child(5) { --pop-x: 34px; --pop-y: 16px; }
.water-prison-pop-drop:nth-child(6) { --pop-x: 8px; --pop-y: 34px; }
.water-prison-pop-drop:nth-child(7) { --pop-x: -36px; --pop-y: 8px; }

.marker.entity-marker.mahoraga-wheel-active {
  overflow: visible;
  z-index: 10;
}

.mahoraga-wheel-effect {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(34px, var(--mahoraga-wheel-size, 92%), 112px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
  transition: width 160ms ease, filter 160ms ease;
  pointer-events: none;
  z-index: 4;
  opacity: 0.94;
  filter:
    drop-shadow(0 2px 2px rgba(0, 0, 0, 0.78))
    drop-shadow(0 0 10px rgba(230, 220, 168, 0.42));
}

.mahoraga-wheel-effect img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.marker.entity-marker.mahoraga-wheel-spin .mahoraga-wheel-effect {
  animation: mahoragaWheelSpin var(--mahoraga-spin-duration, 900ms) cubic-bezier(0.18, 0.82, 0.24, 1) both;
}

.marker.entity-marker.mahoraga-wheel-ready-glow .mahoraga-wheel-effect {
  animation: mahoragaWheelReadyGlow var(--mahoraga-ready-glow-duration, 1100ms) ease-out both;
}

.marker.entity-marker.mahoraga-wheel-ready-glow .marker-media,
.marker.entity-marker.mahoraga-wheel-ready-glow .marker-letter {
  box-shadow:
    0 0 0 2px rgba(255, 246, 214, 0.78),
    0 0 18px rgba(255, 215, 106, 0.76),
    0 0 34px rgba(255, 255, 255, 0.36);
}

.marker.entity-marker.mahoraga-wheel-adapt-effect::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(42px, calc(var(--mahoraga-wheel-size, 92%) * 1.08), 126px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(0.72);
  border: 2px solid rgba(255, 246, 214, 0.88);
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  box-shadow:
    0 0 16px rgba(255, 215, 106, 0.68),
    inset 0 0 18px rgba(118, 220, 255, 0.24);
  animation: mahoragaAdaptBurst var(--mahoraga-spin-duration, 900ms) ease-out both;
}

@keyframes mahoragaWheelSpin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(0.92);
    opacity: 0.72;
    filter:
      drop-shadow(0 2px 2px rgba(0, 0, 0, 0.78))
      drop-shadow(0 0 8px rgba(230, 220, 168, 0.38));
  }
  42% {
    transform: translate(-50%, -50%) rotate(220deg) scale(1.24);
    opacity: 1;
    filter:
      drop-shadow(0 2px 2px rgba(0, 0, 0, 0.86))
      drop-shadow(0 0 18px rgba(255, 235, 134, 0.82))
      drop-shadow(0 0 32px rgba(118, 220, 255, 0.26));
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg) scale(1);
    opacity: 0.94;
    filter:
      drop-shadow(0 2px 2px rgba(0, 0, 0, 0.78))
      drop-shadow(0 0 10px rgba(230, 220, 168, 0.42));
  }
}

@keyframes mahoragaAdaptBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
  }
  24% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.42);
  }
}

@keyframes mahoragaWheelReadyGlow {
  0% {
    transform: translate(-50%, -50%) rotate(-8deg) scale(0.96);
    opacity: 0.72;
    filter:
      drop-shadow(0 2px 2px rgba(0, 0, 0, 0.78))
      drop-shadow(0 0 8px rgba(255, 215, 106, 0.5));
  }
  38% {
    transform: translate(-50%, -50%) rotate(10deg) scale(1.18);
    opacity: 1;
    filter:
      drop-shadow(0 2px 2px rgba(0, 0, 0, 0.84))
      drop-shadow(0 0 14px var(--mahoraga-ready-glow-shadow, rgba(255, 215, 106, 0.88)))
      drop-shadow(0 0 28px var(--mahoraga-ready-glow-color, rgba(255, 246, 214, 0.72)))
      drop-shadow(0 0 42px rgba(255, 255, 255, 0.38));
  }
  100% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    opacity: 0.94;
    filter:
      drop-shadow(0 2px 2px rgba(0, 0, 0, 0.78))
      drop-shadow(0 0 10px rgba(230, 220, 168, 0.42));
  }
}

@keyframes waterPrisonOrbShift {
  0% {
    transform: translate(-51%, -50%) scale(0.97) rotate(-2deg);
    opacity: 0.86;
  }
  50% {
    transform: translate(-49%, -52%) scale(1.03) rotate(3deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -49%) scale(0.99) rotate(-4deg);
    opacity: 0.92;
  }
}

@keyframes waterPrisonDropFall {
  0% {
    transform: translateY(-2px) scale(0.58);
    opacity: 0;
  }
  22% {
    opacity: 0.92;
  }
  100% {
    transform: translateY(28px) scale(0.18);
    opacity: 0;
  }
}

@keyframes waterPrisonBubblePop {
  0% {
    transform: translate(-50%, -50%) scale(0.82);
    opacity: 0.82;
  }
  38% {
    transform: translate(-50%, -50%) scale(1.16);
    opacity: 0.96;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.72);
    opacity: 0;
  }
}

@keyframes waterPrisonPopDrop {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: translate(calc(-50% + var(--pop-x, 0px)), calc(-50% + var(--pop-y, 0px))) scale(0.18);
    opacity: 0;
  }
}

@keyframes cursed-flame-flicker {
  from {
    transform: translateY(2px) scaleX(0.94) scaleY(0.96) rotate(-3deg);
    opacity: 0.58;
  }
  to {
    transform: translateY(-3px) scaleX(1.04) scaleY(1.08) rotate(4deg);
    opacity: 0.9;
  }
}

.marker.entity-marker.sandevistan-active {
  filter:
    drop-shadow(0 0 14px rgba(53, 255, 169, 0.62))
    drop-shadow(0 0 26px rgba(56, 238, 255, 0.28));
}

.marker.entity-marker.sandevistan-active .marker-media,
.marker.entity-marker.sandevistan-active .marker-letter {
  border-color: rgba(61, 255, 183, 0.88);
  box-shadow:
    0 0 0 1px rgba(68, 238, 255, 0.54),
    0 0 18px rgba(61, 255, 183, 0.62),
    0 0 28px rgba(68, 238, 255, 0.24);
}

.marker.entity-marker.sandevistan-active:not(.bow-drawing)::before,
.marker.entity-marker.sandevistan-active:not(.bow-drawing)::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.marker.entity-marker.sandevistan-active:not(.bow-drawing)::before {
  inset: -120px;
  z-index: 0;
  opacity: 0.58;
  background:
    radial-gradient(circle, rgba(55, 255, 173, 0.18) 0 14%, rgba(68, 238, 255, 0.1) 28%, transparent 62%);
  border: 1px solid rgba(55, 255, 173, 0.2);
  box-shadow:
    inset 0 0 34px rgba(55, 255, 173, 0.14),
    0 0 28px rgba(68, 238, 255, 0.16);
  animation: sandevistanFieldPulse 780ms ease-in-out infinite alternate;
}

.marker.entity-marker.sandevistan-active:not(.bow-drawing)::after {
  inset: -22px;
  z-index: 0;
  background:
    radial-gradient(circle, rgba(55, 255, 173, 0.34) 0 38%, rgba(68, 238, 255, 0.22) 48%, transparent 72%);
  box-shadow:
    0 0 18px rgba(55, 255, 173, 0.34),
    0 0 30px rgba(68, 238, 255, 0.22);
  animation: sandevistanMarkerPulse 420ms ease-out infinite alternate;
}

.marker.entity-marker.sandevistan-activation-burst:not(.bow-drawing)::before {
  opacity: 0.9;
  animation:
    sandevistanActivationBurst 720ms ease-out,
    sandevistanFieldPulse 780ms ease-in-out infinite alternate;
}

.sandevistan-afterimage-effect {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  width: var(--afterimage-size, 34px);
  height: var(--afterimage-size, 34px);
  display: grid;
  place-items: center;
  pointer-events: none;
  border-radius: 999px;
  border: 1px solid rgba(55, 255, 173, 0.7);
  color: rgba(236, 255, 242, 0.72);
  font-size: 0.8rem;
  font-weight: 900;
  opacity: 0;
  transform:
    translate(-50%, -50%)
    rotate(var(--afterimage-angle, 0deg))
    scale(0.86);
  background:
    linear-gradient(90deg, rgba(55, 255, 173, 0.48), rgba(68, 238, 255, 0.28)),
    var(--afterimage-url, none) center / cover no-repeat,
    rgba(4, 12, 14, 0.3);
  box-shadow:
    0 0 14px rgba(55, 255, 173, 0.42),
    0 0 24px rgba(68, 238, 255, 0.26);
  mix-blend-mode: screen;
  filter: saturate(1.55) contrast(1.1);
  transition:
    opacity 70ms ease,
    transform 380ms ease;
}

.sandevistan-afterimage-effect.visible {
  opacity: 0.64;
  transform:
    translate(-50%, -50%)
    rotate(var(--afterimage-angle, 0deg))
    scale(1.08);
}

.sandevistan-afterimage-effect.activation {
  z-index: 18;
  box-shadow:
    0 0 24px rgba(55, 255, 173, 0.58),
    0 0 42px rgba(68, 238, 255, 0.24);
}

.sandevistan-afterimage-effect.activation.visible {
  opacity: 0.86;
  transform:
    translate(-50%, -50%)
    rotate(var(--afterimage-angle, 0deg))
    scale(1.18);
}

.marker.entity-marker.sukuna-domain-preview-captured {
  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.88),
    0 0 0 8px rgba(239, 232, 245, 0.24),
    0 0 22px rgba(184, 15, 47, 0.46);
}

.marker.entity-marker.smart-rocket-locking,
.marker.entity-marker.smart-rocket-locked {
  --smart-lock-progress: 0;
  --smart-burst-progress: 0;
  box-shadow:
    0 0 0 2px rgba(4, 12, 16, 0.94),
    0 0 0 calc(3px + (8px * var(--smart-lock-progress))) rgba(104, 216, 255, 0.2),
    0 0 24px rgba(104, 216, 255, 0.55);
  filter: saturate(1.2) contrast(1.08);
}

.marker.entity-marker.smart-rocket-locking::after,
.marker.entity-marker.smart-rocket-locked::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 999px;
  border: 2px solid rgba(104, 216, 255, 0.78);
  clip-path: polygon(50% 50%, 50% 0, calc(50% + 50% * var(--smart-lock-progress)) 0, 100% 0, 100% 100%, 0 100%, 0 0, 50% 0);
  opacity: 0.86;
  pointer-events: none;
}

.marker.entity-marker.smart-rocket-locked::after {
  border-color: rgba(255, 238, 122, 0.95);
  box-shadow: 0 0 18px rgba(255, 238, 122, 0.56);
}

.marker.entity-marker.smart-rocket-locked::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 999px;
  border: 2px dashed rgba(255, 159, 63, 0.86);
  opacity: calc(0.35 + (0.55 * var(--smart-burst-progress)));
  transform: scale(calc(0.92 + (0.1 * var(--smart-burst-progress))));
  pointer-events: none;
}

.marker-letter {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: var(--entity-orb-size, 82cqmin);
  height: var(--entity-orb-size, 82cqmin);
  margin: auto;
  border-radius: 999px;
  background: rgba(4, 12, 16, 0.86);
  border: 1px solid rgba(105, 212, 255, 0.44);
  transition: width 160ms ease, height 160ms ease, filter 160ms ease;
}

.marker.enemy .marker-letter {
  border-color: rgba(255, 105, 98, 0.5);
}

.marker.entity-marker.life-knocked .marker-media,
.marker.entity-marker.life-knocked .marker-letter {
  border-color: rgba(255, 74, 74, 0.86);
  box-shadow:
    0 0 0 1px rgba(3, 9, 12, 0.9),
    0 0 16px rgba(255, 74, 74, 0.5);
  filter: saturate(0.85);
}

.marker.entity-marker.life-dead {
  opacity: 0.62;
  filter: grayscale(0.9);
}

.marker.entity-marker.life-dead .marker-media,
.marker.entity-marker.life-dead .marker-letter {
  border-color: rgba(232, 237, 242, 0.46);
  box-shadow:
    0 0 0 1px rgba(3, 9, 12, 0.9),
    0 0 14px rgba(232, 237, 242, 0.16);
}

.marker-nameplate {
  position: absolute;
  left: 50%;
  top: -16%;
  min-width: 74px;
  max-width: 112px;
  transform: translate(-50%, -100%);
  display: grid;
  gap: 3px;
  justify-items: center;
  pointer-events: none;
  z-index: 10;
}

.marker-display-name {
  max-width: 112px;
  padding: 2px 6px;
  border-radius: 5px;
  color: rgba(238, 248, 255, 0.96);
  background: rgba(5, 11, 15, 0.78);
  border: 1px solid rgba(112, 213, 255, 0.28);
  font-size: 0.58rem;
  line-height: 1.12;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.34);
}

.marker-character-name {
  max-width: 112px;
  padding: 1px 5px;
  border-radius: 4px;
  color: rgba(255, 246, 214, 0.95);
  background: rgba(24, 18, 9, 0.76);
  border: 1px solid rgba(255, 219, 126, 0.24);
  font-size: 0.5rem;
  line-height: 1.08;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.28);
}

.marker-hp-bar {
  width: 64px;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(56, 12, 16, 0.86);
  border: 1px solid rgba(4, 10, 12, 0.86);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 8px rgba(0, 0, 0, 0.42);
}

.marker-hp-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4fe073, #d1f06c);
  box-shadow: 0 0 8px rgba(99, 232, 122, 0.48);
}

.marker.entity-marker.life-knocked .marker-nameplate {
  filter: drop-shadow(0 0 9px rgba(255, 74, 74, 0.42));
}

.marker.entity-marker.life-knocked .marker-hp-fill {
  background: linear-gradient(90deg, rgba(255, 74, 74, 0.96), rgba(255, 137, 110, 0.94));
  box-shadow: 0 0 9px rgba(255, 74, 74, 0.62);
}

.marker-life-badge {
  position: absolute;
  left: 50%;
  bottom: -22%;
  max-width: 86px;
  padding: 2px 6px;
  border-radius: 999px;
  transform: translateX(-50%);
  color: #171006;
  background: rgba(255, 218, 84, 0.94);
  border: 1px solid rgba(255, 248, 192, 0.55);
  font-size: 0.56rem;
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
  z-index: 9;
}

.marker.entity-marker.life-dead .marker-life-badge {
  color: rgba(232, 237, 242, 0.92);
  background: rgba(8, 12, 16, 0.78);
  border-color: rgba(232, 237, 242, 0.18);
}

.astra-life-burst {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--life-burst-size, 44px);
  height: var(--life-burst-size, 44px);
  z-index: 18;
  border-radius: 999px;
  pointer-events: none;
  contain: layout paint;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  animation: astra-life-burst 720ms cubic-bezier(0.18, 0.76, 0.2, 1) forwards;
}

.astra-life-burst.death {
  border: 2px solid rgba(255, 94, 94, 0.78);
  box-shadow:
    0 0 0 1px rgba(255, 232, 232, 0.16),
    0 0 18px rgba(255, 94, 94, 0.32);
}

.astra-life-burst.knockdown {
  border: 2px solid rgba(255, 218, 84, 0.78);
  box-shadow:
    0 0 0 1px rgba(255, 248, 192, 0.18),
    0 0 18px rgba(255, 218, 84, 0.3);
}

.marker-facing {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24%;
  height: 24%;
  min-width: 5px;
  min-height: 5px;
  max-width: 9px;
  max-height: 9px;
  border-radius: 999px;
  transform:
    translate(-50%, -50%)
    rotate(var(--facing-angle, 90deg))
    translateY(-44%);
  transform-origin: center;
  color: currentColor;
  background: currentColor;
  border: 1px solid rgba(6, 14, 10, 0.82);
  filter:
    drop-shadow(0 0 3px rgba(0, 0, 0, 0.96))
    drop-shadow(0 0 5px rgba(148, 239, 128, 0.35));
  z-index: 3;
  pointer-events: none;
}

.marker-facing::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 42% 38%, rgba(255, 255, 255, 0.85), transparent 34%);
}

.marker-aim-cone {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--aim-range-tiles, 5) * 100%);
  height: 1px;
  transform: rotate(var(--aim-angle, 0deg));
  transform-origin: left center;
  pointer-events: none;
  opacity: 0;
  z-index: 1;
}

.marker.aiming .marker-aim-cone {
  opacity: 0.94;
}

.marker-aim-line {
  position: absolute;
  left: 42%;
  top: 50%;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(148, 239, 128, 0.95), rgba(148, 239, 128, 0.36) 56%, transparent 100%);
  box-shadow:
    0 0 4px rgba(0, 0, 0, 0.92),
    0 0 8px rgba(148, 239, 128, 0.38);
}

.marker-aim-left {
  transform: rotate(var(--aim-spread-left, -11deg));
}

.marker-aim-right {
  transform: rotate(var(--aim-spread-right, 11deg));
}

.marker.aim-moving .marker-aim-line {
  background: linear-gradient(90deg, rgba(148, 239, 128, 0.95), rgba(148, 239, 128, 0.34) 56%, transparent 100%);
  box-shadow:
    0 0 4px rgba(0, 0, 0, 0.92),
    0 0 8px rgba(148, 239, 128, 0.34);
}

.marker.entity-marker.no-weapon-aim .marker-facing,
.marker.entity-marker.no-weapon-aim .marker-aim-cone {
  display: none;
}

.marker-block-arc {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 156%;
  height: 156%;
  min-width: 22px;
  min-height: 22px;
  max-width: 46px;
  max-height: 46px;
  transform: translate(-50%, -50%) rotate(var(--facing-angle, 90deg));
  border-radius: 999px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.96;
  filter:
    drop-shadow(0 0 5px rgba(0, 0, 0, 0.82))
    drop-shadow(0 0 9px rgba(80, 184, 255, 0.42));
}

.marker-block-arc::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    conic-gradient(
      from -90deg,
      rgba(118, 219, 255, 0.94) 0deg 64deg,
      rgba(118, 219, 255, 0) 64deg 296deg,
      rgba(118, 219, 255, 0.94) 296deg 360deg
    );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 4px));
}

.marker-block-arc::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 30%;
  height: 18%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(182, 240, 255, 0.94);
  box-shadow: 0 0 10px rgba(80, 184, 255, 0.42);
  opacity: 0.88;
}

.entity-action-badge {
  position: absolute;
  left: 50%;
  top: -16%;
  max-width: 92px;
  padding: 2px 6px;
  border-radius: 999px;
  transform: translate(-50%, -18%) scale(0.82);
  transform-origin: center;
  pointer-events: none;
  z-index: 8;
  opacity: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.58rem;
  line-height: 1.15;
  font-weight: 800;
  color: #eaf7ff;
  background: rgba(4, 12, 16, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(3, 10, 13, 0.84),
    0 8px 18px rgba(0, 0, 0, 0.32);
  transition:
    opacity 85ms ease,
    transform 180ms cubic-bezier(0.2, 0.85, 0.25, 1);
}

.entity-action-badge.visible {
  opacity: 1;
  transform: translate(-50%, -92%) scale(1);
}

.entity-action-badge.ranged {
  color: #9ee4ff;
  border-color: rgba(112, 209, 255, 0.34);
}

.entity-action-badge.reload {
  color: #ffe2a6;
  border-color: rgba(255, 210, 112, 0.34);
}

.entity-action-badge.melee {
  color: #ffccba;
  border-color: rgba(255, 155, 112, 0.32);
}

.move-pad {
  display: none;
}

.mobile-look-cursor {
  display: none;
}

.mobile-stats-handle {
  display: none;
}

.move-stick-face {
  display: none;
}

body.live-match-view .board-wrap {
  cursor: crosshair;
}

.move-button,
.move-center {
  min-height: 56px;
  display: grid;
  place-items: center;
  border-radius: var(--mobile-control-radius);
}

.move-button {
  width: 64px;
  min-width: 64px;
  background: rgba(4, 10, 14, 0.96);
  color: var(--ink);
  border: 1px solid rgba(105, 212, 255, 0.46);
  padding: 0;
  font-size: 1.4rem;
  touch-action: none;
  user-select: none;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.move-icon {
  display: grid;
  place-items: center;
  line-height: 1;
  font-size: 1.3rem;
  font-weight: 900;
}

.move-button:hover {
  background: rgba(255, 212, 118, 0.1);
  border-color: rgba(255, 212, 118, 0.42);
}

.move-button.holding {
  background: rgba(255, 212, 118, 0.16);
  border-color: rgba(255, 212, 118, 0.58);
  box-shadow: 0 0 0 1px rgba(255, 212, 118, 0.16);
}

body.mobile-ui.live-match-view .ability-dock-panel {
  position: fixed;
  width: min(calc(100vw - 24px), 430px);
  max-width: calc(100vw - 24px);
  z-index: 25;
}

body.mobile-ui.live-match-view .topbar {
  position: absolute;
  left: calc(8px + env(safe-area-inset-left));
  top: calc(8px + env(safe-area-inset-top));
  z-index: 45;
  width: auto;
  min-height: 0;
  padding: 0;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.mobile-ui.live-match-view .topbar .brand-block,
body.mobile-ui.live-match-view .topbar .topbar-actions {
  display: none;
}

body.mobile-ui.live-match-view .menu-toggle-button {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(105, 212, 255, 0.32);
  border-radius: 16px;
  background: rgba(4, 10, 14, 0.82);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

body.mobile-ui.live-match-view .live-match-hero {
  position: absolute;
  inset: 0 auto auto 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: none;
  box-shadow: none;
}

body.mobile-ui.live-match-view .live-match-hero > div:not(.quick-actions),
body.mobile-ui.live-match-view .play-browser-panel,
body.mobile-ui.live-match-view .room-lobby-panel,
body.mobile-ui.live-match-view .empty-state,
body.mobile-ui.live-match-view .match-focus-panel,
body.mobile-ui.live-match-view .log-panel,
body.mobile-ui.live-match-view .mobile-dock {
  display: none !important;
}

body.mobile-ui.live-match-view .combat-stage {
  display: block;
  gap: 8px;
  height: 0;
  overflow: visible;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.mobile-ui.live-match-view[data-mobile-movement="buttons"] .move-pad {
  display: contents;
}

body.mobile-ui.live-match-view[data-mobile-movement="buttons"] .move-button {
  display: grid;
  position: fixed;
  z-index: 30;
}

body.mobile-ui.live-match-view[data-mobile-movement="joystick"] .move-pad {
  position: fixed;
  z-index: 30;
  display: grid;
}

.move-center {
  border: 1px solid rgba(105, 212, 255, 0.22);
  background: rgba(105, 212, 255, 0.08);
  color: var(--player);
}

.move-center-core {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(105, 212, 255, 0.88);
  box-shadow:
    0 0 0 4px rgba(105, 212, 255, 0.12),
    0 0 14px rgba(105, 212, 255, 0.28);
}

.quick-action-button {
  --cooldown-angle: 0deg;
  width: 68px;
  min-width: 68px;
  height: 68px;
  min-height: 68px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(105, 212, 255, 0.24);
  background: rgba(4, 10, 14, 0.94);
  color: var(--ink);
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.36),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  contain: layout paint;
}

.quick-action-button.active {
  border-color: rgba(255, 212, 118, 0.42);
  background: linear-gradient(160deg, rgba(255, 212, 118, 0.2), rgba(4, 10, 14, 0.96));
  color: var(--accent-soft);
}

.quick-action-button.holding {
  border-color: rgba(119, 220, 255, 0.62);
  background: linear-gradient(180deg, rgba(18, 58, 78, 0.88), rgba(4, 10, 14, 0.98));
  box-shadow:
    0 0 0 1px rgba(119, 220, 255, 0.18),
    0 14px 32px rgba(0, 0, 0, 0.42),
    inset 0 0 22px rgba(119, 220, 255, 0.12);
}

.quick-action-button:disabled {
  opacity: 1;
  cursor: not-allowed;
}

.quick-action-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
}

.control-icon-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.quick-action-state {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-width: 4ch;
  font-variant-numeric: tabular-nums;
}

.quick-action-ring {
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background:
    conic-gradient(from -90deg, rgba(255, 212, 118, 0.92) var(--cooldown-angle), rgba(255, 255, 255, 0.08) 0deg),
    rgba(3, 8, 11, 0.88);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  opacity: 0.34;
  pointer-events: none;
}

.quick-action-button.cooling {
  color: rgba(231, 239, 236, 0.74);
}

.quick-action-button.cooling .quick-action-ring {
  opacity: 1;
}

.quick-action-timer {
  position: absolute;
  right: 7px;
  bottom: 7px;
  z-index: 3;
  min-width: 28px;
  max-width: 42px;
  padding: 2px 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: var(--accent-soft);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-action-timer:empty {
  display: none;
}

.game-hud {
  position: fixed;
  z-index: 22;
  transform-origin: center;
  touch-action: none;
}

.game-hud[hidden],
.status-popover[hidden] {
  display: none;
}

.health-hud {
  width: min(286px, 46vw);
  padding: 8px 10px;
  border: 1px solid rgba(105, 212, 255, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(8, 18, 23, 0.9), rgba(5, 13, 17, 0.86)),
    radial-gradient(circle at top right, rgba(105, 212, 255, 0.1), transparent 45%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.health-hud.collapsed {
  width: auto;
  min-width: 0;
  padding: 6px;
  border-radius: 999px;
}

.health-hud-toggle {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: block;
  color: inherit;
  font: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
  touch-action: none;
}

.health-hud-toggle:focus-visible {
  outline: 2px solid rgba(105, 212, 255, 0.78);
  outline-offset: 5px;
  border-radius: 14px;
}

.health-hud-stack {
  display: grid;
  gap: 6px;
}

.health-hud-mini-stack {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-resource-mini {
  --resource-angle: 360deg;
  --resource-ring-color: rgba(184, 198, 207, 0.9);
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  background:
    conic-gradient(var(--resource-ring-color) var(--resource-angle), rgba(255, 255, 255, 0.1) 0),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 8px 18px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.hud-resource-mini::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(8, 18, 23, 0.96), rgba(5, 12, 17, 0.94));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hud-resource-mini-icon,
.hud-resource-mini strong {
  position: relative;
  z-index: 1;
}

.hud-resource-mini-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  transform: translateY(-5px);
}

.hud-resource-mini-icon img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.hud-resource-mini strong {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 5px;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.hud-resource-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.hud-resource-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.hud-resource-icon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.hud-resource-fallback {
  font-size: 0.62rem;
  font-weight: 900;
  color: var(--ink);
}

.hud-resource-body {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.hud-resource-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 7px;
  align-items: baseline;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.hud-resource-top strong {
  color: var(--ink);
  min-width: 0;
  justify-self: end;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.hud-resource-top em {
  color: rgba(141, 255, 171, 0.92);
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.hud-resource-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hud-resource-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width 140ms ease-out;
}

.resource-health .hud-resource-fill {
  background: linear-gradient(90deg, rgba(54, 223, 112, 0.92), rgba(141, 255, 171, 0.92));
  box-shadow: 0 0 18px rgba(54, 223, 112, 0.24);
}

.resource-health.hud-resource-mini {
  --resource-ring-color: rgba(72, 225, 126, 0.95);
}

.resource-health.warn .hud-resource-fill {
  background: linear-gradient(90deg, rgba(255, 196, 74, 0.94), rgba(255, 232, 139, 0.94));
  box-shadow: 0 0 18px rgba(255, 196, 74, 0.24);
}

.resource-health.warn.hud-resource-mini {
  --resource-ring-color: rgba(255, 204, 86, 0.96);
}

.resource-health.danger .hud-resource-fill {
  background: linear-gradient(90deg, rgba(255, 74, 74, 0.94), rgba(255, 139, 110, 0.94));
  box-shadow: 0 0 18px rgba(255, 74, 74, 0.28);
}

.resource-health.danger.hud-resource-mini {
  --resource-ring-color: rgba(255, 84, 84, 0.96);
}

.resource-stamina .hud-resource-fill {
  background: linear-gradient(90deg, rgba(42, 143, 255, 0.96), rgba(116, 214, 255, 0.94));
  box-shadow: 0 0 16px rgba(60, 169, 255, 0.3);
}

.resource-stamina.hud-resource-mini {
  --resource-ring-color: rgba(64, 166, 255, 0.96);
}

.resource-energy .hud-resource-fill {
  background: linear-gradient(90deg, rgba(73, 221, 255, 0.94), rgba(180, 246, 255, 0.94));
  box-shadow: 0 0 16px rgba(73, 221, 255, 0.28);
}

.resource-energy.hud-resource-mini {
  --resource-ring-color: rgba(91, 225, 255, 0.95);
}

.resource-cursed .hud-resource-fill {
  background: linear-gradient(90deg, rgba(5, 7, 10, 0.98), rgba(47, 54, 66, 0.96));
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.44);
}

.resource-cursed.hud-resource-mini {
  --resource-ring-color: rgba(15, 18, 24, 0.98);
}

.resource-shield .hud-resource-fill,
.resource-other .hud-resource-fill {
  background: linear-gradient(90deg, rgba(184, 198, 207, 0.9), rgba(238, 249, 248, 0.9));
}

.resource-shield.hud-resource-mini,
.resource-other.hud-resource-mini {
  --resource-ring-color: rgba(214, 229, 235, 0.9);
}

.health-hud.life-knocked {
  border-color: rgba(255, 74, 74, 0.38);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(255, 74, 74, 0.12);
}

.health-hud.life-dead {
  border-color: rgba(232, 237, 242, 0.2);
  filter: grayscale(0.35);
}

.match-inventory-hud {
  width: auto;
  min-width: 118px;
  max-width: min(280px, 42vw);
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(173, 215, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(8, 17, 24, 0.94), rgba(5, 12, 18, 0.9)),
    radial-gradient(circle at top right, rgba(173, 215, 255, 0.08), transparent 42%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.inventory-hud-toggle {
  width: 100%;
  min-height: 0;
  padding: 5px 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
}

.inventory-hud-title {
  font-size: 0.76rem;
  font-weight: 700;
}

.inventory-hand-state {
  display: flex;
  gap: 5px;
  align-items: center;
}

.inventory-hand-orb {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.42);
}

.inventory-hand-orb.empty {
  background: #c33131;
}

.inventory-hand-orb.filled {
  background: #49d66f;
  box-shadow: 0 0 10px rgba(73, 214, 111, 0.34);
}

.inventory-hud-toggle strong,
.inventory-hud-summary,
.inventory-hud-item-meta,
.inventory-hud-loot-chip {
  font-variant-numeric: tabular-nums;
}

.inventory-hud-summary {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.inventory-hud-body {
  margin-top: 8px;
  display: grid;
  gap: 7px;
}

.inventory-hud-item {
  width: 100%;
  min-height: 0;
  padding: 8px 9px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  text-align: left;
}

.inventory-hud-item.equipped {
  border-color: rgba(103, 223, 156, 0.34);
  box-shadow: inset 0 0 0 1px rgba(103, 223, 156, 0.12);
}

.inventory-hud-item.holding-drop,
.inventory-hud-loot-chip.holding-drop {
  border-color: rgba(255, 218, 84, 0.58);
  background: rgba(255, 218, 84, 0.1);
  box-shadow:
    inset 0 0 0 1px rgba(255, 218, 84, 0.12),
    0 0 14px rgba(255, 218, 84, 0.12);
}

.inventory-hud-item:disabled {
  opacity: 0.7;
}

.inventory-hud-item-name {
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-hud-item-meta,
.inventory-hud-item-qty,
.inventory-hud-item-action,
.inventory-hud-empty {
  color: var(--muted);
  font-size: 0.72rem;
}

.inventory-hud-item-qty {
  margin-left: auto;
  font-weight: 700;
}

.inventory-hud-item-action {
  color: var(--accent-soft);
  font-weight: 800;
  white-space: nowrap;
}

.inventory-hud-loot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.inventory-hud-loot-chip {
  padding: 4px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.71rem;
  cursor: pointer;
}

.inventory-hud-chest {
  display: grid;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 8px;
}

.inventory-hud-chest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.inventory-hud-chest-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(250, 204, 21, 0.32);
  background: rgba(120, 91, 24, 0.28);
  color: #fff7ed;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
}

.melee-slot-bar {
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.melee-slot-button {
  position: relative;
  overflow: hidden;
  min-height: 76px;
  padding: 11px 12px;
  display: grid;
  gap: 4px;
  justify-items: start;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  text-align: left;
}

.melee-slot-button.empty {
  opacity: 0.68;
}

.melee-slot-index {
  color: rgba(150, 206, 255, 0.9);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.melee-slot-name {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.12;
}

.melee-slot-meta {
  color: var(--muted);
  font-size: 0.72rem;
}

.status-rail {
  display: grid;
  gap: 8px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(105, 212, 255, 0.18);
  background: rgba(5, 13, 17, 0.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.status-icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 24, 31, 0.92);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  overflow: visible;
}

.status-icon-button.active {
  border-color: rgba(255, 212, 118, 0.54);
  box-shadow: 0 0 0 1px rgba(255, 212, 118, 0.18);
}

.status-icon-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.status-icon-button i {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(5, 13, 17, 0.96);
  background: #69d4ff;
}

.status-icon-button.bad i {
  background: #ff5a4c;
}

.status-icon-button.ending {
  animation: status-expiring 0.72s ease-in-out infinite;
}

.status-popover {
  position: fixed;
  z-index: 24;
  width: min(240px, 72vw);
  transform: translate(0, -50%);
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(105, 212, 255, 0.22);
  background: rgba(8, 19, 24, 0.95);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
}

.status-popover strong,
.status-popover span,
.status-popover p {
  display: block;
}

.status-popover strong {
  margin-bottom: 4px;
}

.status-popover span {
  color: var(--player);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-popover span.bad {
  color: var(--danger);
}

.status-popover p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

body.status-rail-disabled .status-rail,
body.status-rail-disabled .status-popover {
  display: none !important;
}

@keyframes status-expiring {
  0%,
  100% {
    opacity: 0.74;
    box-shadow: 0 0 0 rgba(255, 212, 118, 0);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 18px rgba(255, 212, 118, 0.32);
  }
}

.match-focus-panel {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
}

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

.match-focus {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.focus-card {
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 4px;
}

.focus-card strong {
  font-weight: 700;
}

.focus-card span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.3;
}

.focus-card.empty {
  grid-column: 1 / -1;
}

.focus-section {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.focus-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.focus-section-head strong {
  color: var(--accent-soft);
}

.focus-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 8px;
  min-width: 0;
}

.focus-stat-row {
  min-width: 0;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.focus-resource-row {
  grid-template-columns: 24px minmax(0, 1fr) auto auto;
}

.focus-stat-row.empty {
  grid-column: 1 / -1;
  color: var(--muted);
}

.focus-stat-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.focus-stat-icon img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.focus-stat-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.84rem;
}

.focus-stat-row strong {
  color: var(--ink);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.focus-stat-row em {
  color: rgba(141, 255, 171, 0.92);
  font-style: normal;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.focus-resource-meter {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.focus-resource-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: rgba(105, 212, 255, 0.9);
}

.focus-resource-row.resource-health .focus-resource-meter span {
  background: rgba(86, 226, 125, 0.94);
}

.focus-resource-row.resource-stamina .focus-resource-meter span {
  background: rgba(73, 171, 255, 0.96);
}

.focus-resource-row.resource-cursed .focus-resource-meter span {
  background: linear-gradient(90deg, #05070a, #343a45);
}

.focus-limb-row {
  align-items: start;
}

.focus-limb-detail {
  min-width: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-limb-armor {
  color: rgba(255, 212, 118, 0.9);
}

.focus-limb-hp-meter span {
  background: rgba(105, 212, 255, 0.9);
}

.focus-limb-armor-meter span {
  background: rgba(255, 212, 118, 0.92);
}

.ability-dock-panel {
  min-width: 0;
  overflow: visible;
  position: sticky;
  bottom: 20px;
  z-index: 5;
  padding: 14px 16px;
  background:
    linear-gradient(180deg, rgba(11, 24, 31, 0.98), rgba(8, 18, 23, 0.96)),
    radial-gradient(circle at top, rgba(105, 212, 255, 0.08), transparent 42%);
  backdrop-filter: blur(12px);
}

.ability-dock-summary {
  min-height: 52px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.ability-dock-summary::-webkit-details-marker {
  display: none;
}

.ability-dock-summary strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
}

.ability-dock-summary-action {
  color: var(--accent-soft);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ability-dock-panel[open] .ability-dock-summary-action {
  color: var(--muted);
}

.ability-dock-panel[open] .ability-dock-summary-action::before {
  content: "Close";
}

.ability-dock-panel[open] .ability-dock-summary-action {
  font-size: 0;
}

.ability-dock-panel[open] .ability-dock-summary-action::before {
  font-size: 0.76rem;
}

.ability-dock-body {
  display: grid;
  gap: 10px;
  padding: 0 10px 10px;
}

body.live-match-view:not(.mobile-ui) .combat-stage {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  grid-template-areas:
    "hero hero"
    "board stats"
    "board actions"
    "log log";
  align-items: start;
}

body.live-match-view:not(.mobile-ui) .app-shell {
  gap: 12px;
}

body.live-match-view:not(.mobile-ui) .topbar {
  padding: 12px 16px;
  gap: 14px;
}

body.live-match-view:not(.mobile-ui) .brand-block h1 {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}

body.live-match-view:not(.mobile-ui) .brand-block .status {
  margin: 6px 0 0;
}

body.live-match-view:not(.mobile-ui) .live-match-hero {
  grid-area: hero;
  padding: 12px 16px;
  gap: 12px;
}

body.live-match-view:not(.mobile-ui) .live-match-hero .eyebrow {
  margin-bottom: 4px;
}

body.live-match-view:not(.mobile-ui) .live-match-hero h2 {
  font-size: 1.35rem;
}

body.live-match-view:not(.mobile-ui) .live-match-hero .status {
  margin: 6px 0 0;
}

body.live-match-view:not(.mobile-ui) .board-wrap {
  grid-area: board;
  width: min(100%, calc(100vh - 280px), calc(100vw - 460px));
  max-width: 100%;
  justify-self: center;
  padding: 10px;
  align-content: start;
}

body.live-match-view:not(.mobile-ui) .board-stage {
  width: 100%;
}

body.live-match-view:not(.mobile-ui) .match-focus-panel {
  grid-area: stats;
  position: sticky;
  top: 16px;
  align-self: start;
  max-height: calc(100vh - 32px);
  overflow: auto;
}

body.live-match-view:not(.mobile-ui) .ability-dock-panel {
  grid-area: actions;
}

body.live-match-view:not(.mobile-ui) .ability-dock-panel .melee-slot-bar {
  margin: 0;
}

body.live-match-view:not(.mobile-ui) .ability-dock-panel .ability-dock-head {
  margin-bottom: 0;
}

body.live-match-view:not(.mobile-ui) .ability-dock-panel .ability-dock {
  grid-template-columns: repeat(5, minmax(54px, 1fr));
  justify-content: stretch;
}

body.live-match-view:not(.mobile-ui) .log-panel {
  grid-area: log;
}

@media (max-width: 1080px) {
  body.live-match-view:not(.mobile-ui) .combat-stage {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "board"
      "stats"
      "actions"
      "log";
  }

  body.live-match-view:not(.mobile-ui) .match-focus-panel {
    position: relative;
    top: auto;
    max-height: none;
  }

  body.live-match-view:not(.mobile-ui) .board-stage {
    width: 100%;
  }

  body.live-match-view:not(.mobile-ui) .board-wrap {
    width: min(100%, calc(100vh - 360px), calc(100vw - 48px));
  }
}

.ability-dock-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.ability-dock-tools {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.ability-page-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ability-dock {
  display: grid;
  grid-template-columns: repeat(5, minmax(72px, 128px));
  justify-content: start;
  gap: 6px;
  overflow: visible;
  padding-bottom: 2px;
  scrollbar-width: none;
  max-width: 100%;
  min-width: 0;
  touch-action: none;
  user-select: none;
}

.ability-dock::-webkit-scrollbar {
  display: none;
}

body[data-ability-bar-layout="stacked"] .ability-dock,
body.live-match-view:not(.mobile-ui)[data-ability-bar-layout="stacked"] .ability-dock-panel .ability-dock {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: calc((72px * 3) + (6px * 2));
  overflow-y: auto;
  padding-right: 4px;
  touch-action: pan-y;
  scrollbar-width: thin;
  align-content: start;
}

body[data-ability-bar-layout="stacked"] .ability-page-controls {
  display: none;
}

body[data-ability-bar-layout="stacked"] .ability-dock::-webkit-scrollbar {
  display: block;
  width: 6px;
}

body[data-ability-bar-layout="stacked"] .ability-dock::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(105, 212, 255, 0.54);
}

.ability-button {
  --cooldown-angle: 0deg;
  --active-angle: 0deg;
  position: relative;
  isolation: isolate;
  text-align: center;
  width: 100%;
  min-width: 0;
  min-height: 72px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(4, 10, 14, 0.88);
  padding: 8px 9px;
  display: grid;
  gap: 3px;
  align-content: center;
  touch-action: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.ability-button[data-ability-source="ability"] {
  border-color: rgba(118, 212, 255, 0.42);
  box-shadow: inset 0 0 18px rgba(118, 212, 255, 0.08);
}

.ability-button[data-ability-source="perk"] {
  border-color: rgba(255, 212, 118, 0.42);
  box-shadow: inset 0 0 18px rgba(255, 212, 118, 0.08);
}

.ability-button[data-ability-source="weapon"] {
  border-color: rgba(255, 126, 86, 0.36);
}

.ability-button[data-ability-source="character"] {
  border-color: rgba(153, 255, 187, 0.34);
}

.ability-button::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 7px;
  z-index: 1;
  background:
    conic-gradient(from -90deg, rgba(255, 212, 118, 0.9) var(--cooldown-angle), rgba(255, 255, 255, 0.08) 0deg);
  opacity: 0;
  pointer-events: none;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
}

.ability-button.cooldown::before {
  opacity: 1;
}

.ability-button.ability-active::before {
  opacity: 1;
  background:
    conic-gradient(from -90deg, rgba(94, 239, 255, 0.95) var(--active-angle), rgba(255, 224, 112, 0.18) 0deg);
}

.ability-button.ability-active {
  border-color: rgba(94, 239, 255, 0.7);
  color: #f4ffdf;
  background:
    linear-gradient(180deg, rgba(17, 68, 75, 0.92), rgba(7, 17, 18, 0.96));
  box-shadow:
    0 0 0 1px rgba(255, 224, 112, 0.18),
    0 0 22px rgba(94, 239, 255, 0.18),
    inset 0 0 20px rgba(94, 239, 255, 0.1);
}

.ability-button.ability-ready-flash {
  border-color: rgba(141, 255, 171, 0.82);
  box-shadow:
    0 0 0 1px rgba(141, 255, 171, 0.24),
    0 0 18px rgba(141, 255, 171, 0.24);
  animation: abilityReadyFlash 850ms ease-out;
}

.ability-button.cooldown {
  border-color: rgba(255, 212, 118, 0.46);
  background: rgba(18, 24, 24, 0.92);
  color: rgba(231, 239, 236, 0.82);
}

.ability-button.needs-reload {
  border-color: rgba(255, 126, 86, 0.58);
  background: rgba(45, 24, 22, 0.94);
  color: rgba(255, 230, 220, 0.9);
}

.ability-button > span {
  position: relative;
  z-index: 2;
}

.ability-source-pill {
  justify-self: center;
  max-width: 100%;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent-soft);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ability-title {
  min-width: 0;
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.ability-meta {
  min-width: 0;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.ability-active-timer {
  justify-self: center;
  min-width: 4ch;
  padding: 2px 6px;
  border-radius: 999px;
  color: #071214;
  background: linear-gradient(90deg, rgba(94, 239, 255, 0.96), rgba(255, 224, 112, 0.96));
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.ability-button.holding,
.melee-slot-button.holding {
  border-color: rgba(255, 212, 118, 0.62);
  background: linear-gradient(180deg, rgba(69, 47, 10, 0.86), rgba(5, 11, 13, 0.96));
  box-shadow:
    0 0 0 1px rgba(255, 212, 118, 0.16),
    inset 0 0 18px rgba(255, 212, 118, 0.1);
}

.ability-button.drawing::after,
.melee-slot-button.drawing::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: -6px;
  z-index: 4;
  height: 3px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(118, 212, 255, 0.95), rgba(255, 212, 118, 0.95))
    0 0 / var(--draw-progress-width, 0%) 100% no-repeat,
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px rgba(118, 212, 255, 0.22);
  pointer-events: none;
}

.ability-button.full-draw::after,
.melee-slot-button.full-draw::after {
  box-shadow:
    0 0 0 1px rgba(255, 212, 118, 0.18),
    0 0 14px rgba(255, 212, 118, 0.38);
}

.ability-button.fuga-drawing::after,
.melee-slot-button.fuga-drawing::after {
  background:
    linear-gradient(90deg, rgba(255, 84, 20, 0.96), rgba(255, 216, 104, 0.96), rgba(255, 246, 205, 0.98))
    0 0 / var(--draw-progress-width, 0%) 100% no-repeat,
    rgba(255, 84, 20, 0.12);
  box-shadow: 0 0 12px rgba(255, 84, 20, 0.32);
}

@keyframes abilityReadyFlash {
  0% {
    transform: translateY(0) scale(1);
    filter: saturate(1);
  }
  38% {
    transform: translateY(-1px) scale(1.035);
    filter: saturate(1.55);
  }
  100% {
    transform: translateY(0) scale(1);
    filter: saturate(1);
  }
}

.dodge-trail-effect {
  position: absolute;
  height: 9px;
  margin-top: 0;
  transform-origin: left center;
  border-radius: 999px;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  background:
    linear-gradient(90deg, rgba(145, 223, 255, 0.98), rgba(70, 167, 255, 0.82) 56%, rgba(70, 167, 255, 0.08));
  box-shadow:
    0 0 0 1px rgba(145, 223, 255, 0.18),
    0 0 12px rgba(70, 167, 255, 0.46);
  transition:
    opacity 120ms ease,
    filter 120ms ease;
  filter: blur(0.1px);
}

.dodge-trail-effect.visible {
  opacity: 1;
}

.trap-projectile-effect {
  position: absolute;
  z-index: 72;
  height: 1px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transform-origin: left center;
  background:
    linear-gradient(90deg, rgba(255, 246, 205, 0), rgba(255, 246, 205, 0.78) 28%, rgba(255, 216, 86, 0.96) 74%, rgba(255, 255, 255, 0.98));
  box-shadow:
    0 0 6px rgba(255, 212, 76, 0.62),
    0 0 12px rgba(255, 157, 41, 0.24);
  transition:
    left var(--bullet-duration, 240ms) linear,
    top var(--bullet-duration, 240ms) linear,
    opacity 70ms ease,
    filter 120ms ease;
  filter: saturate(1.18);
  will-change: left, top, opacity;
}

.trap-projectile-effect.visible {
  opacity: 1;
  filter: saturate(1.35) brightness(1.15);
}

.stuck-arrow-effect {
  position: absolute;
  z-index: 73;
  width: 22px;
  height: 3px;
  pointer-events: none;
  opacity: 0;
  transform:
    translate(-82%, -50%)
    rotate(var(--stuck-arrow-angle, 0rad))
    scaleX(0.72);
  transform-origin: 88% 50%;
  border-radius: 999px;
  background: linear-gradient(90deg, #5f432b, #caa66d 54%, #f3e3b8 76%, #d5d9de 100%);
  box-shadow:
    0 0 0 1px rgba(40, 29, 20, 0.46),
    0 2px 6px rgba(0, 0, 0, 0.35);
  transition:
    opacity 120ms ease,
    transform 160ms cubic-bezier(0.2, 0.82, 0.28, 1);
}

.stuck-arrow-effect::before,
.stuck-arrow-effect::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.stuck-arrow-effect::before {
  right: -4px;
  top: 50%;
  width: 0;
  height: 0;
  transform: translateY(-50%);
  border-left: 7px solid #d5d9de;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.32));
}

.stuck-arrow-effect::after {
  left: -6px;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translateY(-50%) rotate(45deg);
  border-left: 2px solid rgba(92, 64, 40, 0.92);
  border-bottom: 2px solid rgba(92, 64, 40, 0.92);
}

.stuck-arrow-effect.visible {
  opacity: 1;
  transform:
    translate(-82%, -50%)
    rotate(var(--stuck-arrow-angle, 0rad))
    scaleX(1);
}

.melee-swing-effect {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 86;
  opacity: 0;
  transform:
    translate(-50%, -50%)
    rotate(var(--swing-rotation, 0deg))
    scale(0.72);
  transform-origin: center;
  mix-blend-mode: screen;
  filter:
    drop-shadow(0 0 12px rgba(116, 219, 255, 0.4))
    drop-shadow(0 0 26px rgba(36, 136, 255, 0.3));
  transition:
    opacity 85ms ease,
    transform 150ms cubic-bezier(0.2, 0.85, 0.25, 1),
    filter 130ms ease;
}

.melee-swing-effect.visible {
  opacity: 1;
  animation: meleeSwingFade var(--swing-duration, 200ms) ease-out forwards;
  transform:
    translate(-50%, -50%)
    rotate(var(--swing-rotation, 0deg))
    scale(1.02);
}

.melee-swing-effect img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  opacity: 1;
  filter: saturate(1.25) contrast(1.08);
}

.sukuna-area-effect {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 13;
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.12);
  mix-blend-mode: screen;
  transition:
    opacity 90ms ease,
    transform var(--sukuna-effect-duration, 620ms) cubic-bezier(0.15, 0.74, 0.22, 1);
}

.sukuna-area-effect.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: sukunaAreaFade var(--sukuna-effect-duration, 620ms) ease-out forwards;
}

.gojo-area-effect {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 14;
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.14);
  mix-blend-mode: screen;
  transition:
    opacity 90ms ease,
    transform var(--gojo-effect-duration, 720ms) cubic-bezier(0.14, 0.78, 0.18, 1);
}

.gojo-area-effect.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.gojo-area-effect.line {
  border-radius: 999px;
  transform: translate(-50%, -50%) rotate(var(--gojo-line-angle, 0rad)) scaleX(0.08);
  transform-origin: center;
}

.gojo-area-effect.line.visible {
  transform: translate(-50%, -50%) rotate(var(--gojo-line-angle, 0rad)) scaleX(1);
}

.genos-beam-effect {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 14;
  opacity: 0;
  border-radius: 999px;
  transform: translate(-50%, -50%) rotate(var(--genos-beam-angle, 0rad));
  transform-origin: center;
  mix-blend-mode: screen;
  background:
    linear-gradient(90deg, transparent 0 2%, rgba(255, 247, 219, 0.98) 7%, var(--genos-beam-color, #ff8a24) 48%, rgba(255, 250, 222, 0.98) 92%, transparent 100%),
    linear-gradient(0deg, transparent 0 14%, rgba(255, 123, 34, 0.58) 22%, rgba(255, 255, 238, 0.96) 50%, rgba(255, 123, 34, 0.58) 78%, transparent 86%);
  box-shadow:
    0 0 10px var(--genos-beam-color, #ff8a24),
    0 0 26px var(--genos-beam-glow, #fff1b8),
    0 0 42px rgba(255, 120, 32, 0.48);
  filter:
    drop-shadow(0 0 12px var(--genos-beam-color, #ff8a24))
    drop-shadow(0 0 24px var(--genos-beam-glow, #fff1b8));
}

.genos-beam-effect::before,
.genos-beam-effect::after {
  content: "";
  position: absolute;
  left: -1.5%;
  right: -1.5%;
  top: 50%;
  height: 38%;
  border-radius: inherit;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 8px, rgba(255, 252, 228, 0.54) 9px 14px, transparent 15px 27px),
    linear-gradient(90deg, transparent, rgba(255, 172, 72, 0.62), transparent);
  transform: translateY(-50%);
  animation: genosBeamEdge 92ms steps(2, end) infinite;
}

.genos-beam-effect::after {
  height: 115%;
  opacity: 0.42;
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 221, 128, 0.32) 19px 22px, transparent 23px 35px),
    linear-gradient(0deg, transparent 0 22%, rgba(255, 109, 28, 0.48) 48%, transparent 78%);
  animation-duration: 128ms;
  animation-direction: reverse;
}

.genos-beam-effect.cannon {
  z-index: 15;
  box-shadow:
    0 0 14px var(--genos-beam-color, #ff8a24),
    0 0 34px var(--genos-beam-glow, #fff1b8),
    0 0 62px rgba(255, 120, 32, 0.58);
}

.genos-beam-effect.overclocked {
  background:
    linear-gradient(90deg, transparent 0 2%, rgba(255, 252, 232, 1) 7%, #ff6f1f 45%, rgba(255, 251, 218, 1) 92%, transparent 100%),
    linear-gradient(0deg, transparent 0 12%, rgba(255, 75, 22, 0.68) 22%, rgba(255, 255, 238, 0.98) 50%, rgba(255, 75, 22, 0.68) 78%, transparent 88%);
}

.genos-beam-effect.visible {
  opacity: 1;
  animation: genosBeamFlash var(--genos-beam-duration, 1050ms) ease-out forwards;
}

@keyframes genosBeamFlash {
  0% {
    opacity: 0;
    filter: brightness(1.8) drop-shadow(0 0 18px var(--genos-beam-glow, #fff1b8));
  }
  12% {
    opacity: 1;
  }
  72% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    filter: brightness(1.15) drop-shadow(0 0 8px var(--genos-beam-color, #ff8a24));
  }
}

@keyframes genosBeamEdge {
  0% {
    transform: translateY(-50%) scaleY(0.82);
  }
  50% {
    transform: translateY(calc(-50% - 2px)) scaleY(1.12);
  }
  100% {
    transform: translateY(calc(-50% + 2px)) scaleY(0.92);
  }
}

.black-flash-strike-effect {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 17;
  pointer-events: none;
  opacity: 0;
  border-radius: 999px;
  transform: translate(-50%, -50%) rotate(var(--black-flash-angle, 0rad)) scaleX(0.72);
  transform-origin: center;
  mix-blend-mode: screen;
  background:
    linear-gradient(90deg, transparent 0 3%, var(--black-flash-red, #e21b3c) 9%, rgba(255, 238, 238, 0.92) 16%, var(--black-flash-core, #050007) 48%, rgba(255, 238, 238, 0.86) 82%, var(--black-flash-red, #e21b3c) 91%, transparent 100%),
    linear-gradient(0deg, transparent 0 20%, rgba(226, 27, 60, 0.54) 36%, rgba(5, 0, 7, 0.96) 50%, rgba(226, 27, 60, 0.54) 64%, transparent 80%);
  box-shadow:
    0 0 10px var(--black-flash-core, #050007),
    0 0 18px var(--black-flash-red, #e21b3c),
    0 0 42px rgba(226, 27, 60, 0.62);
  filter:
    drop-shadow(0 0 10px var(--black-flash-red, #e21b3c))
    drop-shadow(0 0 22px rgba(5, 0, 7, 0.9));
}

.black-flash-strike-effect::before,
.black-flash-strike-effect::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 50%;
  height: 46%;
  pointer-events: none;
  border-radius: inherit;
  transform: translateY(-50%);
  background:
    repeating-linear-gradient(115deg, transparent 0 10px, rgba(2, 0, 3, 0.96) 11px 15px, rgba(226, 27, 60, 0.86) 16px 18px, transparent 19px 30px),
    linear-gradient(90deg, transparent, rgba(226, 27, 60, 0.5), transparent);
  animation: blackFlashLightning 86ms steps(2, end) infinite;
}

.black-flash-strike-effect::after {
  height: 135%;
  opacity: 0.46;
  background:
    repeating-linear-gradient(65deg, transparent 0 18px, rgba(255, 50, 84, 0.62) 19px 21px, rgba(5, 0, 7, 0.92) 22px 26px, transparent 27px 42px),
    linear-gradient(0deg, transparent 0 30%, rgba(226, 27, 60, 0.36) 50%, transparent 72%);
  animation-duration: 118ms;
  animation-direction: reverse;
}

.black-flash-strike-effect.visible {
  opacity: 1;
  animation: blackFlashStrike var(--black-flash-duration, 260ms) ease-out forwards;
}

.black-flash-bolt {
  position: absolute;
  left: var(--bolt-left, 50%);
  top: var(--bolt-top, 50%);
  width: 16%;
  height: 3px;
  border-radius: 999px;
  background: rgba(5, 0, 7, 0.98);
  box-shadow:
    0 0 4px rgba(255, 255, 255, 0.8),
    0 0 11px var(--black-flash-red, #e21b3c);
  transform: translate(-50%, -50%) rotate(var(--bolt-rotate, 0deg));
  animation: blackFlashBolt var(--black-flash-duration, 260ms) steps(2, end) var(--bolt-delay, 0ms) forwards;
}

@keyframes blackFlashStrike {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--black-flash-angle, 0rad)) scaleX(0.42) scaleY(0.72);
  }
  14% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--black-flash-angle, 0rad)) scaleX(1.04) scaleY(1.18);
  }
  58% {
    opacity: 0.94;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--black-flash-angle, 0rad)) scaleX(1.12) scaleY(0.48);
  }
}

@keyframes blackFlashLightning {
  0% {
    transform: translateY(-50%) skewX(-10deg) scaleY(0.72);
  }
  50% {
    transform: translateY(calc(-50% - 3px)) skewX(14deg) scaleY(1.18);
  }
  100% {
    transform: translateY(calc(-50% + 2px)) skewX(-4deg) scaleY(0.86);
  }
}

@keyframes blackFlashBolt {
  0% {
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.astra-skill-check-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

.astra-skill-check-layer.black-flash {
  background:
    radial-gradient(circle at 50% 50%, rgba(226, 27, 60, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(5, 0, 7, 0.16), rgba(5, 0, 7, 0.04));
}

.astra-skill-check-layer.resolving {
  pointer-events: none;
}

.astra-skill-check-layer.success {
  animation: astraSkillCheckSuccess 360ms ease-out forwards;
}

.astra-skill-check-layer.failed {
  animation: astraSkillCheckFailed 360ms ease-out forwards;
}

.astra-skill-check-target {
  position: absolute;
  width: clamp(44px, 6vmin, 74px);
  height: clamp(44px, 6vmin, 74px);
  padding: 0;
  border: 0;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.6);
  background:
    radial-gradient(circle, rgba(255, 248, 248, 0.95) 0 16%, rgba(226, 27, 60, 0.94) 17% 25%, transparent 26% 38%),
    conic-gradient(from 12deg, #050007, #e21b3c, #fff4f4, #050007, #e21b3c);
  box-shadow:
    0 0 0 2px rgba(255, 245, 245, 0.88),
    0 0 18px rgba(226, 27, 60, 0.88),
    0 0 36px rgba(5, 0, 7, 0.82);
  touch-action: none;
}

.astra-skill-check-target::before,
.astra-skill-check-target::after {
  content: "";
  position: absolute;
  inset: 21%;
  border-radius: 999px;
  border: 2px solid rgba(5, 0, 7, 0.9);
}

.astra-skill-check-target::after {
  inset: 42%;
  border-color: rgba(255, 255, 255, 0.92);
}

.astra-skill-check-target.visible {
  opacity: 1;
  pointer-events: auto;
  animation: astraSkillCheckTarget 300ms linear forwards;
}

.astra-skill-check-target.hit {
  opacity: 0;
  pointer-events: none;
  animation: astraSkillCheckHit 160ms ease-out forwards;
}

.astra-skill-check-target.missed {
  opacity: 0;
  pointer-events: none;
}

@keyframes astraSkillCheckTarget {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.55) rotate(0deg);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0.18;
    transform: translate(-50%, -50%) scale(1.08) rotate(120deg);
  }
}

@keyframes astraSkillCheckHit {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.9);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.55);
  }
}

@keyframes astraSkillCheckSuccess {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes astraSkillCheckFailed {
  0% {
    opacity: 1;
    filter: saturate(1);
  }
  100% {
    opacity: 0;
    filter: saturate(0.35);
  }
}

.fury-lava-laser-effect {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 16;
  opacity: 0;
  border-radius: 999px;
  transform: translateY(-50%) rotate(var(--fury-laser-angle, 0rad)) scaleX(0.03);
  transform-origin: left center;
  mix-blend-mode: screen;
  background:
    linear-gradient(90deg, rgba(255, 44, 20, 0) 0%, rgba(255, 43, 20, 0.95) 18%, rgba(255, 247, 196, 1) 42%, var(--fury-laser-color, #ff2b14) 68%, rgba(104, 8, 5, 0.96) 100%),
    linear-gradient(0deg, transparent 0 10%, rgba(124, 14, 6, 0.7) 20%, rgba(255, 241, 184, 0.98) 50%, rgba(255, 54, 18, 0.74) 80%, transparent 90%);
  box-shadow:
    0 0 12px var(--fury-laser-color, #ff2b14),
    0 0 30px var(--fury-laser-glow, #ffd56a),
    0 0 58px rgba(255, 38, 18, 0.58);
  filter:
    brightness(1.16)
    drop-shadow(0 0 16px var(--fury-laser-color, #ff2b14))
    drop-shadow(0 0 28px var(--fury-laser-glow, #ffd56a));
}

.fury-lava-laser-effect::before,
.fury-lava-laser-effect::after {
  content: "";
  position: absolute;
  inset: -42% -1%;
  border-radius: inherit;
  pointer-events: none;
}

.fury-lava-laser-effect::before {
  background:
    repeating-linear-gradient(90deg, transparent 0 11px, rgba(255, 231, 112, 0.66) 12px 16px, transparent 17px 31px),
    linear-gradient(0deg, transparent 0 30%, rgba(255, 88, 22, 0.72) 48%, transparent 74%);
  animation: furyLaserSurface 104ms steps(2, end) infinite;
}

.fury-lava-laser-effect::after {
  inset: -92% -2%;
  opacity: 0.62;
  background:
    radial-gradient(ellipse at 18% 50%, rgba(255, 210, 85, 0.8), transparent 42%),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(135, 13, 5, 0.5) 19px 25px, transparent 26px 44px);
  filter: blur(2px);
  animation: furyLaserSurface 142ms steps(2, end) infinite reverse;
}

.fury-lava-laser-effect.ice-laser-effect {
  background:
    linear-gradient(90deg, rgba(116, 223, 255, 0) 0%, rgba(116, 223, 255, 0.86) 18%, rgba(248, 255, 255, 1) 42%, var(--fury-laser-color, #74dfff) 68%, rgba(55, 140, 210, 0.88) 100%),
    linear-gradient(0deg, transparent 0 12%, rgba(116, 223, 255, 0.48) 22%, rgba(248, 255, 255, 0.98) 50%, rgba(93, 201, 255, 0.62) 78%, transparent 90%);
  box-shadow:
    0 0 12px var(--fury-laser-color, #74dfff),
    0 0 30px var(--fury-laser-glow, #e8fdff),
    0 0 58px rgba(116, 223, 255, 0.42);
}

.fury-lava-laser-effect.ice-laser-effect::before {
  background:
    repeating-linear-gradient(90deg, transparent 0 15px, rgba(232, 253, 255, 0.74) 16px 20px, transparent 21px 38px),
    linear-gradient(0deg, transparent 0 30%, rgba(116, 223, 255, 0.58) 48%, transparent 74%);
}

.fury-lava-laser-effect.ice-laser-effect::after {
  background:
    radial-gradient(ellipse at 18% 50%, rgba(232, 253, 255, 0.78), transparent 42%),
    repeating-linear-gradient(90deg, transparent 0 20px, rgba(89, 181, 240, 0.42) 21px 27px, transparent 28px 48px);
}

.fury-lava-laser-effect.visible {
  opacity: 1;
  animation: furyLavaLaserDrive var(--fury-laser-duration, 1800ms) cubic-bezier(0.12, 0.86, 0.18, 1) forwards;
}

.nuclear-disrupter-effect {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 96;
  opacity: 0;
  overflow: visible;
  border-radius: 999px;
  transform: translateY(-50%) rotate(var(--nuclear-beam-angle, 0rad)) scaleX(0.03);
  transform-origin: left center;
  mix-blend-mode: screen;
  background:
    linear-gradient(90deg, rgba(76, 219, 255, 0) 0%, rgba(94, 231, 255, 0.9) 20%, rgba(255, 255, 255, 1) 46%, var(--nuclear-beam-color, #dffeff) 66%, rgba(10, 128, 185, 0.82) 100%),
    linear-gradient(0deg, transparent 0 12%, rgba(37, 207, 255, 0.55) 26%, rgba(255, 255, 255, 1) 50%, rgba(78, 219, 255, 0.66) 78%, transparent 90%);
  box-shadow:
    0 0 12px var(--nuclear-beam-color, #dffeff),
    0 0 32px var(--nuclear-beam-glow, #4edbff),
    0 0 70px rgba(78, 219, 255, 0.64);
  filter:
    brightness(1.35)
    drop-shadow(0 0 18px var(--nuclear-beam-glow, #4edbff));
}

.nuclear-disrupter-effect::before,
.nuclear-disrupter-effect::after {
  content: "";
  position: absolute;
  inset: -68% -1%;
  border-radius: inherit;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 13px, rgba(255, 255, 255, 0.86) 14px 17px, transparent 18px 37px),
    linear-gradient(0deg, transparent 0 26%, rgba(80, 232, 255, 0.64) 48%, transparent 76%);
  animation: nuclearBeamSurface 118ms steps(2, end) infinite;
}

.nuclear-disrupter-effect::after {
  inset: -130% -2%;
  opacity: 0.58;
  filter: blur(4px);
  animation-direction: reverse;
}

.nuclear-disrupter-effect.visible {
  opacity: 1;
  animation: nuclearBeamDrive var(--nuclear-beam-duration, 1250ms) cubic-bezier(0.11, 0.82, 0.18, 1) forwards;
}

.nuclear-disrupter-particle {
  position: absolute;
  left: var(--particle-left, 50%);
  top: var(--particle-top, 50%);
  width: var(--particle-size, 4px);
  height: var(--particle-size, 4px);
  border-radius: 999px;
  background: rgba(247, 255, 255, 0.94);
  box-shadow:
    0 0 8px rgba(128, 237, 255, 0.85),
    0 0 18px rgba(78, 219, 255, 0.55);
  transform: translate(-50%, -50%);
  animation: nuclearBeamParticle var(--nuclear-beam-duration, 1250ms) ease-out forwards;
  animation-delay: var(--particle-delay, 0ms);
}

.nuclear-plasma-zone-effect {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 118;
  opacity: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(max(0.03, var(--nuclear-plasma-current, 0.03)));
  transform-origin: center;
  mix-blend-mode: normal;
  background:
    radial-gradient(ellipse at 42% 36%, rgba(255, 255, 255, 1) 0 16%, rgba(223, 254, 255, 1) 28%, rgba(96, 230, 255, 0.99) 54%, rgba(9, 126, 181, 0.98) 78%, rgba(1, 28, 48, 0.96) 100%),
    radial-gradient(ellipse at 64% 58%, rgba(255, 255, 255, 0.8) 0 12%, rgba(64, 220, 255, 0.92) 34%, rgba(1, 28, 48, 0.92) 82%);
  box-shadow:
    0 0 26px var(--nuclear-plasma-glow, #4edbff),
    0 0 78px rgba(78, 219, 255, 0.72);
  filter:
    saturate(1.35)
    brightness(1.12);
}

.nuclear-plasma-zone-effect::before,
.nuclear-plasma-zone-effect::after {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 47% 53% 49% 51% / 55% 43% 57% 45%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 34% 38%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 42%),
    radial-gradient(ellipse at 70% 66%, rgba(78, 219, 255, 0.72), rgba(78, 219, 255, 0) 54%);
  animation: nuclearPlasmaNoise 780ms ease-in-out infinite alternate;
}

.nuclear-plasma-zone-effect::after {
  inset: 12%;
  opacity: 0.78;
  filter: blur(7px);
  animation-duration: 960ms;
  animation-direction: alternate-reverse;
}

.nuclear-plasma-zone-effect.visible {
  opacity: 1;
  animation: nuclearPlasmaGrow var(--nuclear-plasma-grow, 3000ms) cubic-bezier(0.18, 0.78, 0.2, 1) forwards;
}

.nuclear-plasma-zone-effect.active {
  opacity: 1;
  animation: nuclearPlasmaPulse 820ms ease-in-out infinite alternate;
}

@keyframes nuclearBeamDrive {
  0% {
    opacity: 0;
    transform: translateY(-50%) rotate(var(--nuclear-beam-angle, 0rad)) scaleX(0.02);
  }
  18% {
    opacity: 1;
  }
  68% {
    opacity: 0.98;
    transform: translateY(-50%) rotate(var(--nuclear-beam-angle, 0rad)) scaleX(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-50%) rotate(var(--nuclear-beam-angle, 0rad)) scaleX(1);
  }
}

@keyframes nuclearBeamSurface {
  0% {
    transform: translateY(-2px) scaleY(0.8);
  }
  50% {
    transform: translateY(2px) scaleY(1.2);
  }
  100% {
    transform: translateY(-1px) scaleY(0.9);
  }
}

@keyframes nuclearBeamParticle {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
  22% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--particle-drift, 0px)), -50%) scale(1.9);
  }
}

@keyframes nuclearPlasmaGrow {
  0% {
    opacity: 0.98;
    transform: translate(-50%, -50%) scale(max(0.03, var(--nuclear-plasma-current, 0.03)));
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes nuclearPlasmaPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.985);
    filter: saturate(1.28) brightness(1.06);
  }
  100% {
    transform: translate(-50%, -50%) scale(1.02);
    filter: saturate(1.45) brightness(1.18);
  }
}

@keyframes nuclearPlasmaNoise {
  0% {
    transform: rotate(-4deg) scale(0.98);
  }
  100% {
    transform: rotate(6deg) scale(1.03);
  }
}

.fury-shockwave-effect,
.fury-ground-eruption-effect {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.16);
  opacity: 0;
  mix-blend-mode: screen;
}

.fury-shockwave-effect {
  z-index: 15;
  border: 2px solid rgba(255, 214, 96, 0.74);
  background:
    radial-gradient(circle, rgba(255, 230, 124, 0.28) 0 14%, rgba(255, 57, 20, 0.22) 34%, transparent 68%);
  box-shadow:
    0 0 18px rgba(255, 64, 20, 0.72),
    inset 0 0 16px rgba(255, 229, 128, 0.58);
}

.fury-shockwave-effect.visible {
  animation: furyShockwave var(--fury-shockwave-duration, 360ms) ease-out forwards;
}

.fury-ground-eruption-effect {
  z-index: 15;
  background:
    radial-gradient(circle, rgba(255, 246, 196, 0.96) 0 10%, rgba(255, 91, 24, 0.88) 28%, rgba(87, 7, 4, 0.74) 56%, transparent 78%),
    radial-gradient(circle, transparent 38%, rgba(255, 196, 72, 0.6) 48%, transparent 64%);
  border: 2px solid rgba(255, 213, 95, 0.7);
  box-shadow:
    0 0 18px var(--fury-laser-color, #ff2b14),
    0 0 38px var(--fury-laser-glow, #ffd56a);
}

.fury-ground-eruption-effect.visible {
  animation: furyGroundEruption var(--fury-eruption-duration, 680ms) cubic-bezier(0.13, 0.76, 0.22, 1) forwards;
}

@keyframes furyLavaLaserDrive {
  0% {
    opacity: 0;
    transform: translateY(-50%) rotate(var(--fury-laser-angle, 0rad)) scaleX(0.02);
    filter: brightness(2) drop-shadow(0 0 24px var(--fury-laser-glow, #ffd56a));
  }
  18% {
    opacity: 1;
  }
  72% {
    opacity: 0.96;
    transform: translateY(-50%) rotate(var(--fury-laser-angle, 0rad)) scaleX(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-50%) rotate(var(--fury-laser-angle, 0rad)) scaleX(1);
    filter: brightness(1.1) drop-shadow(0 0 8px var(--fury-laser-color, #ff2b14));
  }
}

@keyframes furyLaserSurface {
  0% {
    transform: translateY(-1px) scaleY(0.82);
  }
  50% {
    transform: translateY(2px) scaleY(1.14);
  }
  100% {
    transform: translateY(-2px) scaleY(0.92);
  }
}

@keyframes furyShockwave {
  0% {
    opacity: 0.92;
    transform: translate(-50%, -50%) scale(0.18);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes furyGroundEruption {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.12) rotate(0deg);
  }
  16% {
    opacity: 0.98;
  }
  58% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0.86) rotate(14deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.2) rotate(22deg);
  }
}

.projectile-impact-effect {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 90;
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.18);
  mix-blend-mode: screen;
  background:
    radial-gradient(circle, rgba(255, 246, 184, 0.95) 0 12%, rgba(255, 137, 38, 0.64) 30%, transparent 58%),
    radial-gradient(circle, transparent 40%, rgba(255, 104, 22, 0.84) 50%, rgba(120, 22, 10, 0.48) 66%, transparent 80%);
  border: 2px solid rgba(255, 213, 95, 0.58);
  filter:
    drop-shadow(0 0 10px rgba(255, 122, 28, 0.84))
    drop-shadow(0 0 22px rgba(255, 76, 18, 0.48));
}

.projectile-impact-effect::before,
.projectile-impact-effect::after {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: inherit;
  pointer-events: none;
}

.projectile-impact-effect::before {
  border: 2px dashed rgba(255, 232, 142, 0.46);
}

.projectile-impact-effect::after {
  inset: 16%;
  background: radial-gradient(circle, rgba(255, 255, 220, 0.68), rgba(255, 98, 18, 0.18) 48%, transparent 70%);
}

.projectile-impact-effect.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: projectileImpactBurst var(--projectile-impact-duration, 380ms) ease-out forwards;
}

.projectile-impact-effect.m600-shell-impact-effect {
  background:
    radial-gradient(circle, rgba(255, 247, 188, 0.96) 0 10%, rgba(255, 178, 54, 0.66) 25%, transparent 54%),
    conic-gradient(from 18deg, transparent 0 11%, rgba(255, 218, 92, 0.62) 11% 15%, transparent 15% 32%, rgba(255, 122, 30, 0.52) 32% 36%, transparent 36% 100%);
  border: 1px solid rgba(255, 223, 118, 0.48);
  filter:
    drop-shadow(0 0 6px rgba(255, 172, 45, 0.72))
    drop-shadow(0 0 12px rgba(255, 108, 28, 0.34));
}

.projectile-impact-effect.m600-shell-impact-effect::before {
  inset: -32%;
  border: 1px solid rgba(255, 216, 112, 0.32);
}

.projectile-impact-effect.m600-shell-impact-effect::after {
  inset: 26%;
  background: radial-gradient(circle, rgba(255, 255, 224, 0.72), rgba(255, 166, 42, 0.22) 46%, transparent 68%);
}

.projectile-impact-effect.cursed-cauldron-impact-effect {
  background:
    radial-gradient(circle, rgba(232, 255, 180, 0.94) 0 13%, rgba(57, 255, 106, 0.6) 32%, transparent 60%),
    radial-gradient(circle, transparent 38%, rgba(39, 226, 91, 0.72) 50%, rgba(10, 64, 24, 0.48) 68%, transparent 82%);
  border-color: rgba(152, 255, 103, 0.58);
  filter:
    drop-shadow(0 0 10px rgba(57, 255, 106, 0.76))
    drop-shadow(0 0 22px rgba(23, 176, 74, 0.42));
}

.projectile-impact-effect.cursed-cauldron-impact-effect::before {
  border-color: rgba(174, 255, 89, 0.44);
}

.projectile-impact-effect.cursed-cauldron-impact-effect::after {
  background: radial-gradient(circle, rgba(238, 255, 209, 0.68), rgba(57, 255, 106, 0.18) 48%, transparent 70%);
}

.projectile-impact-effect.fire-impact-effect {
  background:
    radial-gradient(circle, rgba(255, 253, 224, 0.98) 0 10%, rgba(255, 188, 64, 0.76) 25%, transparent 54%),
    radial-gradient(circle, transparent 38%, rgba(255, 86, 28, 0.86) 50%, rgba(151, 27, 10, 0.52) 70%, transparent 84%);
  border-color: rgba(255, 221, 118, 0.76);
  filter:
    drop-shadow(0 0 12px rgba(255, 142, 42, 0.9))
    drop-shadow(0 0 28px rgba(255, 67, 18, 0.54));
}

.projectile-impact-effect.fire-impact-effect::before {
  border-color: rgba(255, 238, 154, 0.56);
}

.projectile-impact-effect.fire-impact-effect::after {
  background: radial-gradient(circle, rgba(255, 252, 221, 0.78), rgba(255, 116, 31, 0.24) 48%, transparent 72%);
}

.projectile-impact-effect.lightning-impact-effect {
  background:
    radial-gradient(circle, rgba(255, 253, 194, 0.98) 0 9%, rgba(255, 240, 88, 0.74) 24%, transparent 52%),
    conic-gradient(from 12deg, transparent 0 8%, rgba(87, 213, 255, 0.82) 9% 13%, transparent 14% 31%, rgba(255, 249, 154, 0.74) 33% 37%, transparent 38% 100%);
  border-color: rgba(255, 241, 118, 0.8);
  filter:
    drop-shadow(0 0 12px rgba(87, 213, 255, 0.9))
    drop-shadow(0 0 28px rgba(255, 240, 88, 0.48));
}

.projectile-impact-effect.lightning-impact-effect::before {
  inset: -28%;
  border-color: rgba(96, 219, 255, 0.58);
  transform: rotate(20deg);
}

.projectile-impact-effect.lightning-impact-effect::after {
  background:
    linear-gradient(90deg, transparent 0 40%, rgba(255, 253, 194, 0.78) 44% 56%, transparent 60% 100%),
    radial-gradient(circle, rgba(87, 213, 255, 0.34), transparent 68%);
}

.projectile-impact-effect.frost-nova-impact-effect {
  background:
    radial-gradient(circle, rgba(244, 255, 255, 0.98) 0 10%, rgba(155, 235, 255, 0.72) 28%, transparent 56%),
    repeating-conic-gradient(from 6deg, transparent 0 12deg, rgba(232, 253, 255, 0.62) 13deg 18deg, transparent 19deg 36deg);
  border-color: rgba(221, 251, 255, 0.82);
  filter:
    drop-shadow(0 0 12px rgba(155, 235, 255, 0.88))
    drop-shadow(0 0 30px rgba(67, 166, 236, 0.5));
}

.projectile-impact-effect.frost-nova-impact-effect::before {
  inset: -34%;
  border: 2px solid rgba(232, 253, 255, 0.52);
  clip-path: polygon(50% 0, 58% 37%, 100% 50%, 58% 63%, 50% 100%, 42% 63%, 0 50%, 42% 37%);
}

.projectile-impact-effect.frost-nova-impact-effect::after {
  inset: 6%;
  background:
    radial-gradient(circle, rgba(250, 255, 255, 0.72), rgba(155, 235, 255, 0.22) 46%, transparent 70%),
    repeating-conic-gradient(from 18deg, rgba(232, 253, 255, 0.42) 0 4deg, transparent 5deg 24deg);
}

.projectile-impact-effect.venom-splat-impact-effect {
  border-radius: 56% 44% 61% 39% / 45% 60% 40% 55%;
  background:
    radial-gradient(ellipse at 38% 32%, rgba(244, 255, 195, 0.96) 0 10%, rgba(141, 255, 87, 0.78) 30%, transparent 58%),
    radial-gradient(ellipse at 52% 62%, transparent 28%, rgba(215, 255, 154, 0.68) 48%, rgba(18, 92, 34, 0.52) 74%, transparent 88%);
  border-color: rgba(215, 255, 154, 0.72);
  filter:
    drop-shadow(0 0 12px rgba(141, 255, 87, 0.84))
    drop-shadow(0 0 30px rgba(36, 183, 74, 0.48));
}

.projectile-impact-effect.venom-splat-impact-effect::before {
  inset: -22% -36%;
  border: 2px solid rgba(215, 255, 154, 0.44);
  border-radius: 62% 38% 56% 44% / 42% 58% 36% 64%;
}

.projectile-impact-effect.venom-splat-impact-effect::after {
  inset: 12% -6%;
  border-radius: 52% 48% 64% 36% / 46% 58% 42% 54%;
  background:
    radial-gradient(circle at 36% 34%, rgba(244, 255, 195, 0.72), transparent 14%),
    radial-gradient(ellipse, rgba(141, 255, 87, 0.36), rgba(20, 92, 34, 0.08) 56%, transparent 74%);
}

.projectile-impact-effect.stone-spear-impact-effect {
  border-radius: 44% 56% 49% 51% / 48% 46% 54% 52%;
  background:
    radial-gradient(circle, rgba(244, 224, 184, 0.92) 0 9%, rgba(184, 162, 120, 0.7) 28%, transparent 56%),
    repeating-conic-gradient(from 12deg, rgba(68, 55, 39, 0.54) 0 5deg, transparent 6deg 28deg);
  border-color: rgba(184, 162, 120, 0.76);
  filter:
    drop-shadow(0 0 10px rgba(184, 162, 120, 0.7))
    drop-shadow(0 0 24px rgba(56, 45, 33, 0.44));
}

.projectile-impact-effect.stone-spear-impact-effect::before {
  inset: -30%;
  border: 2px solid rgba(126, 109, 85, 0.48);
  clip-path: polygon(50% 2%, 57% 38%, 98% 50%, 57% 62%, 50% 98%, 43% 62%, 2% 50%, 43% 38%);
}

.projectile-impact-effect.stone-spear-impact-effect::after {
  inset: 4%;
  background:
    repeating-conic-gradient(from 8deg, rgba(68, 55, 39, 0.48) 0 3deg, transparent 4deg 24deg),
    radial-gradient(circle, rgba(244, 224, 184, 0.42), transparent 62%);
}

.projectile-impact-effect.poison-impact-effect {
  background:
    radial-gradient(circle, rgba(242, 255, 180, 0.96) 0 11%, rgba(126, 255, 65, 0.72) 30%, transparent 58%),
    radial-gradient(ellipse, transparent 36%, rgba(57, 226, 95, 0.82) 50%, rgba(9, 92, 42, 0.5) 72%, transparent 86%);
  border-color: rgba(196, 255, 108, 0.74);
  filter:
    drop-shadow(0 0 12px rgba(126, 255, 65, 0.84))
    drop-shadow(0 0 28px rgba(36, 183, 74, 0.52));
}

.projectile-impact-effect.poison-impact-effect::before {
  border-color: rgba(212, 255, 120, 0.54);
}

.projectile-impact-effect.poison-impact-effect::after {
  background: radial-gradient(circle, rgba(237, 255, 172, 0.74), rgba(77, 230, 82, 0.24) 48%, transparent 72%);
}

.projectile-impact-effect.ooze-puddle-impact-effect {
  background:
    radial-gradient(circle, rgba(236, 255, 173, 0.9) 0 9%, rgba(86, 255, 77, 0.68) 31%, transparent 62%),
    radial-gradient(ellipse, transparent 34%, rgba(120, 255, 76, 0.7) 48%, rgba(12, 92, 34, 0.38) 70%, transparent 84%);
  border-color: rgba(205, 255, 105, 0.62);
  filter:
    drop-shadow(0 0 10px rgba(86, 255, 77, 0.72))
    drop-shadow(0 0 24px rgba(21, 175, 56, 0.42));
}

.projectile-impact-effect.ooze-puddle-impact-effect::before {
  border-color: rgba(209, 255, 116, 0.5);
}

.projectile-impact-effect.ooze-puddle-impact-effect::after {
  background: radial-gradient(circle, rgba(229, 255, 158, 0.66), rgba(86, 255, 77, 0.2) 48%, transparent 72%);
}

.projectile-impact-effect.goo-blob-impact-effect {
  border-radius: 56% 44% 62% 38% / 44% 62% 38% 56%;
  background:
    radial-gradient(ellipse at 38% 32%, rgba(248, 255, 224, 0.96) 0 9%, rgba(120, 240, 93, 0.78) 28%, transparent 58%),
    radial-gradient(ellipse at 50% 60%, transparent 30%, rgba(216, 255, 82, 0.7) 48%, rgba(18, 93, 34, 0.5) 72%, transparent 86%);
  border-color: rgba(216, 255, 82, 0.7);
  filter:
    drop-shadow(0 0 12px rgba(120, 240, 93, 0.82))
    drop-shadow(0 0 30px rgba(216, 255, 82, 0.36));
}

.projectile-impact-effect.goo-blob-impact-effect::before {
  inset: -26% -42%;
  border: 2px solid rgba(216, 255, 82, 0.42);
  border-radius: 58% 42% 55% 45% / 42% 58% 38% 62%;
}

.projectile-impact-effect.goo-blob-impact-effect::after {
  inset: 10% -8%;
  border-radius: 52% 48% 64% 36% / 46% 58% 42% 54%;
  background:
    radial-gradient(circle at 38% 34%, rgba(248, 255, 218, 0.72), transparent 14%),
    radial-gradient(ellipse, rgba(120, 240, 93, 0.34), rgba(20, 92, 34, 0.08) 56%, transparent 74%);
}

.projectile-impact-effect.genos-impact-effect {
  background:
    radial-gradient(circle, rgba(255, 252, 228, 0.98) 0 10%, rgba(255, 183, 71, 0.78) 28%, transparent 58%),
    conic-gradient(from 18deg, transparent 0 10%, rgba(255, 139, 38, 0.82) 12% 19%, transparent 22% 33%, rgba(255, 239, 178, 0.74) 35% 42%, transparent 45% 100%);
  border: 2px solid rgba(255, 213, 119, 0.72);
  filter:
    drop-shadow(0 0 12px rgba(255, 137, 38, 0.88))
    drop-shadow(0 0 28px rgba(255, 241, 184, 0.62));
}

.projectile-impact-effect.genos-impact-effect::before {
  inset: -28%;
  border: 0;
  background:
    radial-gradient(circle, rgba(255, 185, 76, 0.26), transparent 62%),
    repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.28) 0 4deg, transparent 5deg 18deg);
  animation: genosImpactSpin var(--projectile-impact-duration, 420ms) ease-out forwards;
}

.projectile-impact-effect.genos-impact-effect::after {
  inset: 8%;
  background: radial-gradient(circle, rgba(255, 251, 226, 0.7), rgba(255, 135, 36, 0.18) 54%, transparent 74%);
  border: 1px solid rgba(255, 248, 220, 0.64);
  box-shadow:
    inset 0 0 18px rgba(255, 245, 196, 0.58),
    0 0 18px rgba(255, 126, 36, 0.48);
}

@keyframes genosImpactSpin {
  0% {
    opacity: 0.95;
    transform: rotate(0deg) scale(0.72);
  }
  100% {
    opacity: 0;
    transform: rotate(42deg) scale(1.28);
  }
}

.astra-status-effect {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--status-effect-size, 48px);
  height: var(--status-effect-size, 48px);
  pointer-events: none;
  z-index: 18;
  opacity: 0;
  transform: translate(-50%, -52%) scale(0.34);
  border-radius: 999px;
  mix-blend-mode: screen;
}

.astra-status-effect::before,
.astra-status-effect::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.astra-status-effect.visible {
  opacity: 1;
  transform: translate(-50%, -52%) scale(1);
  animation: astraStatusBurst var(--status-effect-duration, 760ms) cubic-bezier(0.16, 0.82, 0.24, 1) forwards;
}

.astra-status-effect.bleed {
  background:
    radial-gradient(circle at 34% 38%, rgba(255, 36, 36, 0.86) 0 9%, transparent 12%),
    radial-gradient(circle at 64% 56%, rgba(121, 5, 20, 0.78) 0 13%, transparent 17%),
    radial-gradient(circle, rgba(255, 52, 52, 0.42), transparent 62%);
  filter: drop-shadow(0 0 10px rgba(185, 12, 28, 0.62));
}

.astra-status-effect.bleed::before {
  inset: 18%;
  border: 2px solid rgba(255, 79, 79, 0.34);
  transform: rotate(-18deg) scaleX(1.28);
}

.astra-status-effect.poison {
  background:
    radial-gradient(circle at 40% 40%, rgba(197, 255, 122, 0.82) 0 10%, transparent 13%),
    radial-gradient(circle at 62% 60%, rgba(69, 190, 62, 0.64) 0 14%, transparent 18%),
    radial-gradient(circle, rgba(78, 255, 96, 0.32), transparent 64%);
  filter: drop-shadow(0 0 10px rgba(76, 220, 74, 0.58));
}

.astra-status-effect.poison::before {
  inset: 15%;
  border: 2px dotted rgba(180, 255, 102, 0.42);
  animation: astraStatusSpin 780ms linear forwards;
}

.astra-status-effect.fire {
  background:
    radial-gradient(circle, rgba(255, 236, 150, 0.86) 0 8%, rgba(255, 132, 28, 0.62) 24%, transparent 58%),
    conic-gradient(from 8deg, rgba(255, 84, 18, 0.1), rgba(255, 178, 58, 0.66), rgba(122, 16, 8, 0.22), rgba(255, 84, 18, 0.68), rgba(255, 84, 18, 0.1));
  filter:
    drop-shadow(0 0 10px rgba(255, 128, 28, 0.76))
    drop-shadow(0 0 22px rgba(255, 72, 18, 0.36));
}

.astra-status-effect.fire::before {
  inset: -10%;
  border: 2px dashed rgba(255, 210, 96, 0.42);
  animation: astraStatusSpin 680ms linear forwards;
}

.astra-status-effect.panic {
  background:
    radial-gradient(circle, rgba(255, 231, 120, 0.72) 0 8%, transparent 10%),
    conic-gradient(from 0deg, transparent 0 12%, rgba(255, 142, 38, 0.82) 12% 17%, transparent 17% 34%, rgba(255, 55, 42, 0.64) 34% 40%, transparent 40% 100%);
  border: 2px solid rgba(255, 151, 46, 0.52);
  filter:
    drop-shadow(0 0 10px rgba(255, 142, 38, 0.72))
    drop-shadow(0 0 18px rgba(255, 55, 42, 0.32));
}

.astra-status-effect.panic::after {
  inset: 23%;
  background:
    linear-gradient(90deg, transparent 0 35%, rgba(255, 237, 144, 0.9) 36% 64%, transparent 65% 100%),
    linear-gradient(0deg, transparent 0 35%, rgba(255, 237, 144, 0.9) 36% 64%, transparent 65% 100%);
  transform: rotate(19deg);
}

.astra-status-effect.stun {
  background:
    conic-gradient(from 18deg, transparent 0 8%, rgba(255, 234, 104, 0.86) 8% 13%, transparent 13% 28%, rgba(255, 255, 188, 0.72) 28% 34%, transparent 34% 100%),
    radial-gradient(circle, rgba(255, 244, 128, 0.26), transparent 60%);
  filter:
    drop-shadow(0 0 10px rgba(255, 234, 104, 0.72))
    drop-shadow(0 0 18px rgba(255, 184, 42, 0.28));
}

.astra-status-effect.stun::before {
  inset: 8%;
  border: 2px dashed rgba(255, 244, 128, 0.46);
  animation: astraStatusSpin 620ms linear forwards;
}

.astra-status-effect.water-prison {
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.86) 0 9%, transparent 15%),
    radial-gradient(circle, rgba(111, 222, 255, 0.64) 0 24%, rgba(24, 120, 210, 0.28) 52%, transparent 70%);
  border: 2px solid rgba(208, 250, 255, 0.76);
  filter:
    drop-shadow(0 0 12px rgba(95, 219, 255, 0.8))
    drop-shadow(0 0 24px rgba(35, 130, 255, 0.42));
  animation: waterPrisonStatusPulse var(--status-effect-duration, 720ms) ease-out forwards;
}

.astra-status-effect.water-prison::before {
  inset: -14%;
  border: 2px solid rgba(214, 252, 255, 0.48);
  animation: astraStatusSpin 780ms linear forwards;
}

.astra-status-effect.water-prison::after {
  inset: 22%;
  background:
    radial-gradient(circle at 42% 24%, rgba(255, 255, 255, 0.8) 0 12%, transparent 18%),
    radial-gradient(circle, rgba(130, 232, 255, 0.52), transparent 68%);
}

.astra-status-effect.green-fire {
  background:
    radial-gradient(circle, rgba(226, 255, 178, 0.92) 0 11%, rgba(57, 255, 106, 0.66) 24%, transparent 58%),
    conic-gradient(from 8deg, rgba(57, 255, 106, 0.12), rgba(166, 255, 79, 0.62), rgba(8, 54, 21, 0.16), rgba(57, 255, 106, 0.74), rgba(57, 255, 106, 0.12));
  filter:
    drop-shadow(0 0 10px rgba(57, 255, 106, 0.82))
    drop-shadow(0 0 22px rgba(42, 255, 95, 0.44));
}

.astra-status-effect.green-fire::before {
  inset: -12%;
  border: 2px dashed rgba(166, 255, 79, 0.42);
  animation: astraStatusSpin 720ms linear forwards;
}

.astra-status-effect.shadow-mark {
  background:
    radial-gradient(circle, rgba(232, 213, 255, 0.64) 0 7%, rgba(76, 18, 119, 0.72) 18%, transparent 54%),
    conic-gradient(from 45deg, transparent 0 11%, rgba(6, 3, 12, 0.94) 11% 20%, transparent 20% 42%, rgba(76, 18, 119, 0.74) 42% 54%, transparent 54% 100%);
  border: 2px solid rgba(165, 83, 255, 0.48);
  filter:
    drop-shadow(0 0 12px rgba(76, 18, 119, 0.82))
    drop-shadow(0 0 24px rgba(9, 4, 15, 0.72));
}

.astra-status-effect.shadow-mark::after {
  inset: 26%;
  background: linear-gradient(90deg, transparent 0 39%, rgba(9, 4, 15, 0.9) 39% 61%, transparent 61% 100%);
  transform: rotate(45deg);
}

.astra-status-effect.unlimited-void-freeze {
  background:
    repeating-conic-gradient(from 12deg, transparent 0 9deg, rgba(255, 255, 255, 0.88) 9deg 12deg, transparent 12deg 24deg),
    radial-gradient(circle, rgba(255, 255, 255, 0.76) 0 7%, rgba(159, 219, 255, 0.46) 22%, transparent 62%);
  border: 2px solid rgba(220, 248, 255, 0.62);
  filter:
    drop-shadow(0 0 12px rgba(216, 248, 255, 0.78))
    drop-shadow(0 0 28px rgba(74, 146, 255, 0.42));
}

.astra-status-effect.unlimited-void-freeze::before {
  inset: -18%;
  border: 2px dashed rgba(226, 248, 255, 0.58);
  animation: astraStatusSpin 700ms linear forwards;
}

.astra-status-effect.unlimited-void-freeze::after {
  inset: 22%;
  background:
    linear-gradient(90deg, transparent 0 42%, rgba(255, 255, 255, 0.92) 42% 58%, transparent 58% 100%),
    linear-gradient(0deg, transparent 0 42%, rgba(255, 255, 255, 0.92) 42% 58%, transparent 58% 100%);
  transform: rotate(45deg);
}

.astra-status-effect.ice {
  background:
    repeating-conic-gradient(from 18deg, transparent 0 12deg, rgba(230, 252, 255, 0.88) 12deg 15deg, transparent 15deg 28deg),
    radial-gradient(circle, rgba(244, 254, 255, 0.82) 0 9%, rgba(129, 225, 255, 0.52) 25%, transparent 66%);
  border: 2px solid rgba(185, 244, 255, 0.68);
  filter:
    drop-shadow(0 0 12px rgba(159, 234, 255, 0.82))
    drop-shadow(0 0 28px rgba(98, 182, 255, 0.44));
}

.astra-status-effect.ice::before {
  inset: -16%;
  border: 2px dashed rgba(220, 250, 255, 0.58);
  animation: astraStatusSpin 820ms linear forwards;
}

.astra-status-effect.shock {
  background:
    conic-gradient(from 24deg, transparent 0 12%, rgba(255, 226, 90, 0.92) 12% 17%, transparent 17% 34%, rgba(83, 183, 255, 0.82) 34% 41%, transparent 41% 100%),
    radial-gradient(circle, rgba(255, 255, 238, 0.88) 0 8%, rgba(255, 226, 90, 0.46) 22%, rgba(83, 183, 255, 0.22) 48%, transparent 68%);
  border: 2px solid rgba(255, 226, 90, 0.68);
  filter:
    drop-shadow(0 0 12px rgba(255, 226, 90, 0.78))
    drop-shadow(0 0 24px rgba(83, 183, 255, 0.56));
}

.astra-status-effect.shock::before {
  inset: -18%;
  border: 2px dashed rgba(83, 183, 255, 0.56);
  animation: astraStatusSpin 520ms linear forwards;
}

.astra-status-effect.unlimited-void-focus {
  background:
    radial-gradient(circle, rgba(224, 248, 255, 0.46) 0 10%, transparent 14%),
    repeating-radial-gradient(circle, transparent 0 18%, rgba(128, 205, 255, 0.26) 19% 21%, transparent 22% 30%);
  border: 1px solid rgba(178, 226, 255, 0.34);
  filter: drop-shadow(0 0 18px rgba(104, 184, 255, 0.32));
}

.sukuna-area-effect.fuga-explosion {
  background:
    radial-gradient(circle, transparent 0 28%, rgba(28, 10, 7, 0.38) 35%, transparent 48%),
    radial-gradient(circle, transparent 38%, rgba(255, 230, 128, 0.95) 44%, rgba(255, 89, 18, 0.98) 53%, rgba(120, 11, 9, 0.88) 66%, transparent 78%),
    conic-gradient(from 12deg, rgba(255, 231, 142, 0.58), rgba(255, 78, 18, 0.96), rgba(42, 8, 7, 0.82), rgba(255, 116, 28, 0.78), rgba(18, 8, 7, 0.72), rgba(255, 231, 142, 0.58));
  border: 8px solid rgba(255, 96, 20, 0.68);
  filter:
    drop-shadow(0 0 10px rgba(255, 96, 22, 0.72))
    drop-shadow(0 0 24px rgba(255, 43, 18, 0.38));
}

.sukuna-area-effect.fuga-explosion::before,
.sukuna-area-effect.fuga-explosion::after,
.sukuna-area-effect.fuga-release::before,
.sukuna-area-effect.fuga-release::after,
.sukuna-area-effect.dismantle-release::before,
.sukuna-area-effect.dismantle-release::after {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: inherit;
  pointer-events: none;
}

.sukuna-area-effect.fuga-explosion::before {
  background:
    radial-gradient(circle at 26% 44%, rgba(28, 12, 8, 0.62) 0 8%, transparent 17%),
    radial-gradient(circle at 68% 31%, rgba(36, 13, 8, 0.58) 0 10%, transparent 21%),
    radial-gradient(circle at 54% 73%, rgba(16, 11, 9, 0.56) 0 12%, transparent 24%);
  mix-blend-mode: multiply;
}

.sukuna-area-effect.fuga-explosion::after {
  inset: 9%;
  border: 3px dashed rgba(255, 210, 96, 0.36);
  filter: blur(0.2px);
}

.sukuna-area-effect.fuga-explosion.visible {
  animation: sukunaFugaFireGrow var(--sukuna-effect-duration, 4000ms) ease-out forwards;
}

.sukuna-area-effect.fuga-release {
  background:
    radial-gradient(circle, rgba(255, 238, 150, 0.42) 0 8%, rgba(255, 68, 18, 0.32) 18%, transparent 42%),
    conic-gradient(from 22deg, transparent, rgba(255, 215, 92, 0.58), rgba(255, 56, 18, 0.72), transparent, rgba(255, 108, 22, 0.54), transparent);
  border: 0;
  filter:
    drop-shadow(0 0 14px rgba(255, 74, 18, 0.72))
    drop-shadow(0 0 28px rgba(92, 10, 6, 0.52));
}

.sukuna-area-effect.fuga-release::before {
  inset: 14%;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 210, 86, 0.68) 0 7%, transparent 16%),
    radial-gradient(circle at 66% 70%, rgba(255, 52, 18, 0.7) 0 9%, transparent 19%),
    radial-gradient(circle at 58% 36%, rgba(36, 10, 7, 0.54) 0 13%, transparent 24%);
}

.sukuna-area-effect.fuga-release.visible {
  animation: sukunaFugaReleaseBurst var(--sukuna-effect-duration, 720ms) ease-out forwards;
}

.sukuna-area-effect.dismantle-release {
  background:
    radial-gradient(circle, rgba(245, 238, 248, 0.36) 0 14%, rgba(190, 18, 48, 0.18) 28%, transparent 54%),
    conic-gradient(from 24deg, transparent, rgba(190, 18, 48, 0.72), rgba(0, 0, 3, 0.86), transparent, rgba(245, 238, 248, 0.48), transparent);
  border: 0;
  filter:
    drop-shadow(0 0 10px rgba(190, 18, 48, 0.68))
    drop-shadow(0 0 22px rgba(0, 0, 0, 0.8));
}

.sukuna-area-effect.dismantle-release::before {
  inset: 9%;
  background:
    linear-gradient(96deg, transparent 0 36%, rgba(245, 238, 248, 0.76) 44%, rgba(190, 18, 48, 0.62) 51%, transparent 64%),
    linear-gradient(138deg, transparent 0 42%, rgba(0, 0, 3, 0.86) 48%, rgba(190, 18, 48, 0.56) 55%, transparent 68%);
  filter: blur(0.3px);
}

.sukuna-area-effect.dismantle-release::after {
  inset: 20%;
  border: 2px solid rgba(190, 18, 48, 0.42);
  box-shadow: 0 0 12px rgba(245, 238, 248, 0.32);
}

.sukuna-area-effect.dismantle-release.visible {
  animation: sukunaDismantleReleaseBurst var(--sukuna-effect-duration, 620ms) ease-out forwards;
}

.sukuna-area-effect.shrine-channel {
  border: 2px solid rgba(255, 44, 66, 0.82);
  background:
    radial-gradient(circle, rgba(101, 4, 16, 0.08), rgba(181, 12, 35, 0.2) 58%, transparent 62%);
  filter:
    drop-shadow(0 0 10px rgba(255, 44, 66, 0.36))
    drop-shadow(0 0 20px rgba(184, 15, 47, 0.24));
}

.sukuna-area-effect.shrine-cancel {
  border: 2px solid rgba(220, 229, 217, 0.82);
  background:
    radial-gradient(circle, rgba(220, 229, 217, 0.08), rgba(220, 229, 217, 0.18) 44%, transparent 64%);
  filter: drop-shadow(0 0 12px rgba(220, 229, 217, 0.28));
}

.sukuna-area-effect.domain-build {
  border: 2px solid rgba(222, 28, 54, 0.88);
  background:
    repeating-conic-gradient(from 0deg, rgba(82, 3, 12, 0.38) 0 12deg, rgba(18, 2, 6, 0.18) 12deg 24deg),
    radial-gradient(circle, rgba(184, 15, 47, 0.28), rgba(35, 3, 9, 0.42) 58%, transparent 72%);
  filter:
    drop-shadow(0 0 18px rgba(222, 28, 54, 0.46))
    drop-shadow(0 0 34px rgba(0, 0, 0, 0.36));
}

.sukuna-domain-shell-effect {
  position: absolute;
  inset: 0;
  z-index: 28;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(32, 70, 128, 0.18), rgba(108, 10, 26, 0.2) 44%, rgba(0, 0, 0, 0.12) 76%),
    var(--sukuna-domain-floor-image, linear-gradient(135deg, rgba(78, 19, 28, 0.72), rgba(20, 7, 10, 0.9)));
  background-size: cover, 92px 92px;
  background-blend-mode: screen, multiply;
  animation: sukunaDomainShellClose var(--sukuna-domain-shell-duration, 4300ms) ease-in-out forwards;
}

.sukuna-domain-shell-effect.visible {
  opacity: 1;
}

.sukuna-domain-shell-effect::before,
.sukuna-domain-shell-effect::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 58%;
  width: 160vmax;
  height: 160vmax;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.98) 68%, rgba(0, 0, 0, 0.88) 75%, transparent 80%),
    repeating-conic-gradient(from 17deg, rgba(0, 0, 0, 0.98) 0 9deg, rgba(18, 0, 4, 0.96) 9deg 15deg, rgba(0, 0, 0, 0.98) 15deg 28deg);
  filter:
    drop-shadow(0 0 34px rgba(0, 0, 0, 0.75))
    drop-shadow(0 0 18px rgba(143, 14, 32, 0.22));
  mix-blend-mode: normal;
}

.sukuna-domain-shell-effect::before {
  clip-path: polygon(50% 50%, 0 100%, 0 0);
  animation: sukunaDomainShellLeft var(--sukuna-domain-shell-duration, 4300ms) ease-in-out forwards;
}

.sukuna-domain-shell-effect::after {
  clip-path: polygon(50% 50%, 100% 0, 100% 100%);
  animation: sukunaDomainShellRight var(--sukuna-domain-shell-duration, 4300ms) ease-in-out forwards;
}

.sukuna-area-effect.domain-shatter {
  border: 2px solid rgba(225, 232, 238, 0.82);
  background:
    repeating-conic-gradient(from 18deg, rgba(225, 232, 238, 0.42) 0 5deg, transparent 5deg 18deg),
    radial-gradient(circle, rgba(0, 0, 0, 0.18), transparent 68%);
  filter:
    drop-shadow(0 0 16px rgba(225, 232, 238, 0.34))
    drop-shadow(0 0 26px rgba(0, 0, 0, 0.48));
}

.gojo-area-effect.gravity {
  overflow: visible;
  background:
    radial-gradient(circle at 38% 34%, #1f57c8 0 9%, #1647ae 18%, #10388e 34%, #0a2a70 52%, #071d4c 68%, transparent 74%),
    repeating-radial-gradient(circle, transparent 0 14%, rgba(80, 120, 205, 0.18) 15% 17%, transparent 18% 25%);
  box-shadow:
    0 0 0 8px rgba(16, 56, 142, 0.12),
    0 0 22px rgba(46, 111, 216, 0.22);
  animation: gojoBlueSolidOrb var(--gojo-effect-duration, 3000ms) cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.gojo-area-effect.gravity::after {
  content: "";
  position: absolute;
  inset: -16%;
  border-radius: inherit;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    conic-gradient(from 0deg, transparent 0 9deg, rgba(70, 130, 220, 0.34) 10deg 13deg, transparent 14deg 28deg),
    radial-gradient(circle, transparent 0 26%, rgba(16, 56, 142, 0.2) 34%, transparent 62%);
  animation: gojoBluePullSpiral var(--gojo-effect-duration, 3000ms) ease-out forwards;
}

.gojo-blue-pull-tendrils {
  position: absolute;
  inset: -28%;
  border-radius: inherit;
  pointer-events: none;
  mix-blend-mode: screen;
}

.gojo-blue-pull-tendrils i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(44% * var(--pull-size, 1));
  height: 3px;
  border-radius: 999px;
  transform-origin: 0 50%;
  transform: rotate(var(--pull-rot, 0deg)) translateX(42%);
  background: linear-gradient(90deg, transparent, rgba(95, 155, 235, 0.62), #10388e, transparent);
  filter: drop-shadow(0 0 7px rgba(46, 111, 216, 0.42));
  animation: gojoBluePullSpiral var(--gojo-effect-duration, 3000ms) ease-in forwards;
  animation-delay: var(--pull-delay, 0ms);
}

.gojo-area-effect.gojo-melee {
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(255, 255, 255, 0.94) 42%, rgba(125, 218, 255, 0.72) 54%, transparent 100%),
    radial-gradient(ellipse at 82% 50%, rgba(255, 255, 255, 0.96), transparent 58%);
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.58),
    0 0 28px rgba(74, 180, 255, 0.34);
}

.gojo-area-effect.reversal-red {
  overflow: visible;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(255, 38, 58, 0.28) 18%, rgba(255, 86, 96, 0.92) 50%, rgba(255, 226, 230, 0.88) 62%, transparent 100%),
    radial-gradient(ellipse at 86% 50%, rgba(255, 28, 49, 0.95), rgba(255, 68, 82, 0.38) 34%, transparent 70%);
  box-shadow:
    0 0 18px rgba(255, 47, 64, 0.78),
    0 0 42px rgba(255, 36, 56, 0.42);
}

.gojo-area-effect.reversal-red::before,
.gojo-area-effect.reversal-red::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 12%;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

.gojo-area-effect.reversal-red::before {
  border: 3px solid rgba(255, 48, 61, 0.9);
  border-left-color: transparent;
  border-bottom-color: rgba(255, 214, 218, 0.78);
  filter: drop-shadow(0 0 12px rgba(255, 36, 56, 0.8));
  animation: gojoRedVortexCharge var(--gojo-red-charge-ms, 140ms) linear forwards;
}

.gojo-area-effect.reversal-red::after {
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.96) 0 9%, rgba(255, 48, 61, 0.96) 22%, rgba(122, 0, 24, 0.54) 58%, transparent 76%);
  box-shadow:
    0 0 14px rgba(255, 36, 56, 0.92),
    0 0 28px rgba(255, 36, 56, 0.58);
  animation: gojoRedOrbShoot var(--gojo-effect-duration, 560ms) cubic-bezier(0.16, 0.86, 0.2, 1) forwards;
}

.gojo-area-effect.hollow-purple {
  overflow: visible;
  background:
    linear-gradient(90deg, transparent 0 6%, rgba(72, 82, 255, 0.3) 18%, rgba(150, 68, 255, 0.9) 46%, rgba(255, 112, 255, 0.86) 58%, transparent 100%),
    radial-gradient(ellipse at 84% 50%, rgba(148, 58, 255, 0.96), rgba(255, 91, 255, 0.52) 34%, transparent 72%);
  box-shadow:
    0 0 20px rgba(156, 84, 255, 0.78),
    0 0 48px rgba(255, 82, 255, 0.4);
  animation: gojoPurpleOrbDrive var(--gojo-effect-duration, 5900ms) cubic-bezier(0.14, 0.8, 0.16, 1) forwards;
}

.gojo-area-effect.hollow-purple::before,
.gojo-area-effect.hollow-purple::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 34%;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  pointer-events: none;
  transform: translate(-50%, -50%) translateX(var(--gojo-orb-start, -44px)) scale(0.82);
  animation: gojoPurpleOrbFuse var(--gojo-effect-duration, 720ms) cubic-bezier(0.18, 0.84, 0.18, 1) forwards;
  mix-blend-mode: screen;
}

.gojo-area-effect.hollow-purple::before {
  --gojo-orb-start: -54px;
  background:
    radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.96) 0 8%, rgba(82, 176, 255, 0.88) 18%, rgba(0, 68, 255, 0.74) 48%, transparent 72%);
  box-shadow:
    0 0 16px rgba(77, 169, 255, 0.92),
    0 0 34px rgba(0, 92, 255, 0.64);
}

.gojo-area-effect.hollow-purple::after {
  --gojo-orb-start: 54px;
  background:
    radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.96) 0 8%, rgba(255, 104, 128, 0.9) 18%, rgba(255, 20, 58, 0.76) 48%, transparent 72%);
  box-shadow:
    0 0 16px rgba(255, 88, 116, 0.92),
    0 0 34px rgba(255, 20, 58, 0.64);
}

.gojo-purple-rush {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 16;
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(var(--gojo-rush-angle, 0rad)) scale(0.28);
  mix-blend-mode: screen;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 5%, rgba(178, 94, 255, 0.42) 12%, transparent 32%),
    repeating-conic-gradient(from 0deg, transparent 0 8deg, rgba(255, 255, 255, 0.8) 8deg 10deg, transparent 10deg 18deg),
    radial-gradient(circle, rgba(17, 5, 42, 0.72), transparent 72%);
  filter:
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.64))
    drop-shadow(0 0 36px rgba(162, 72, 255, 0.52));
}

.gojo-purple-rush.visible {
  animation: gojoPurpleRush var(--gojo-effect-duration, 720ms) ease-out forwards;
}

.gojo-purple-rush::before {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 16%, rgba(255, 255, 255, 0.46) 24%, transparent 58%);
  opacity: 0;
  animation: gojoPurpleWhiteFlash var(--gojo-effect-duration, 720ms) ease-out forwards;
}

.gojo-purple-ground-scar {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 13;
  opacity: 0;
  transform: translate(0, -50%) rotate(var(--gojo-scar-angle, 0rad)) scaleX(0.02);
  transform-origin: 0 50%;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(10, 1, 22, 0.86), rgba(64, 20, 118, 0.72) 58%, rgba(255, 255, 255, 0.38), transparent),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(188, 112, 255, 0.42) 19px 24px, transparent 25px 42px);
  filter:
    drop-shadow(0 0 10px rgba(122, 48, 255, 0.5))
    drop-shadow(0 0 18px rgba(0, 0, 0, 0.72));
}

.gojo-purple-ground-scar.visible {
  animation: gojoPurpleGroundScar var(--gojo-effect-duration, 5900ms) cubic-bezier(0.18, 0.86, 0.2, 1) forwards;
}

.gojo-area-effect.teleport {
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(201, 249, 255, 0.24) 20%, rgba(255, 255, 255, 0.9) 52%, rgba(125, 222, 255, 0.58) 72%, transparent 100%),
    repeating-linear-gradient(90deg, transparent 0 12px, rgba(255, 255, 255, 0.42) 13px 15px, transparent 16px 24px);
  box-shadow:
    0 0 14px rgba(218, 250, 255, 0.74),
    0 0 32px rgba(102, 198, 255, 0.38);
}

.gojo-area-effect.emerald-green,
.gojo-area-effect.divine-restoration {
  overflow: visible;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.92) 0 9%, rgba(46, 244, 154, 0.62) 24%, rgba(19, 116, 82, 0.2) 52%, transparent 76%),
    repeating-radial-gradient(circle, transparent 0 16%, rgba(161, 255, 217, 0.34) 17% 19%, transparent 20% 28%);
  box-shadow:
    0 0 18px rgba(74, 255, 170, 0.64),
    0 0 38px rgba(27, 183, 124, 0.34);
  animation: gojoEmeraldOrbBloom var(--gojo-effect-duration, 720ms) ease-out forwards;
}

.gojo-area-effect.emerald-green::after {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: inherit;
  pointer-events: none;
  background:
    repeating-conic-gradient(from 8deg, transparent 0 10deg, rgba(192, 255, 225, 0.78) 10deg 12deg, transparent 12deg 22deg),
    radial-gradient(circle, transparent 0 30%, rgba(36, 255, 156, 0.36) 36%, transparent 68%);
  mix-blend-mode: screen;
  animation: gojoEmeraldShockRing var(--gojo-effect-duration, 720ms) ease-out forwards;
}

.gojo-emerald-stun-sparks {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 17;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.42);
  border-radius: 999px;
  background:
    repeating-conic-gradient(from 0deg, transparent 0 9deg, rgba(212, 255, 236, 0.92) 9deg 11deg, transparent 11deg 19deg),
    radial-gradient(circle, rgba(36, 255, 156, 0.28), transparent 62%);
  filter:
    drop-shadow(0 0 10px rgba(36, 255, 156, 0.74))
    drop-shadow(0 0 24px rgba(36, 255, 156, 0.38));
}

.gojo-emerald-stun-sparks.visible {
  animation: gojoEmeraldShockRing var(--gojo-effect-duration, 720ms) ease-out forwards;
}

.gojo-area-effect.divine-restoration {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 10%, rgba(255, 247, 214, 0.62) 24%, rgba(122, 255, 218, 0.26) 52%, transparent 76%),
    repeating-radial-gradient(circle, transparent 0 16%, rgba(255, 255, 255, 0.36) 17% 19%, transparent 20% 28%);
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.72),
    0 0 40px rgba(122, 255, 218, 0.34);
}

.gojo-area-effect.gravity::before,
.gojo-area-effect.unlimited-void::before,
.gojo-area-effect.infinity-block::before,
.gojo-area-effect.infinity-on::before,
.gojo-area-effect.gojo-black-flash::before,
.gojo-area-effect.emerald-green::before,
.gojo-area-effect.divine-restoration::before {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: inherit;
  background-image: var(--gojo-effect-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.82;
  pointer-events: none;
}

.gojo-area-effect.infinity-block,
.gojo-area-effect.infinity-on,
.gojo-area-effect.infinity-off {
  border: 2px solid rgba(226, 249, 255, 0.9);
  background:
    radial-gradient(circle, transparent 0 44%, rgba(218, 248, 255, 0.34) 48%, transparent 54%),
    radial-gradient(circle, rgba(118, 215, 255, 0.12), transparent 68%);
  box-shadow:
    0 0 14px rgba(166, 229, 255, 0.62),
    0 0 34px rgba(72, 174, 255, 0.34);
}

.gojo-area-effect.infinity-off {
  opacity: 0.72;
  filter: saturate(0.65);
}

.gojo-area-effect.unlimited-void {
  border: 1px solid rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.84) 0 4%, rgba(217, 242, 255, 0.42) 10%, rgba(6, 11, 24, 0.58) 36%, transparent 76%),
    repeating-conic-gradient(from 8deg, rgba(255, 255, 255, 0.18) 0 3deg, transparent 3deg 19deg);
  box-shadow:
    0 0 22px rgba(255, 255, 255, 0.54),
    0 0 54px rgba(117, 196, 255, 0.34);
}

.gojo-area-effect.gojo-black-flash {
  border: 0;
  overflow: visible;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 8%, rgba(226, 27, 60, 0.74) 16%, rgba(5, 0, 7, 0.82) 34%, transparent 68%),
    conic-gradient(from 34deg, transparent, rgba(226, 27, 60, 0.86), rgba(255, 255, 255, 0.72), transparent, rgba(5, 0, 7, 0.78), transparent);
  box-shadow:
    0 0 16px rgba(226, 27, 60, 0.76),
    0 0 32px rgba(0, 0, 0, 0.68);
}

.gojo-area-effect.gojo-black-flash::after {
  content: "";
  position: absolute;
  inset: -26%;
  border-radius: inherit;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    repeating-conic-gradient(from 18deg, rgba(5, 0, 7, 0.92) 0 4deg, transparent 4deg 12deg, rgba(226, 27, 60, 0.86) 12deg 15deg, transparent 15deg 24deg),
    radial-gradient(circle, transparent 0 28%, rgba(226, 27, 60, 0.3) 34%, transparent 68%);
  filter:
    drop-shadow(0 0 9px rgba(0, 0, 0, 0.9))
    drop-shadow(0 0 16px rgba(226, 27, 60, 0.76));
  animation:
    gojoBlackFlashElectricity var(--gojo-effect-duration, 420ms) steps(5, end) forwards,
    gojoBlackFlashRedArc var(--gojo-effect-duration, 420ms) ease-out forwards;
}

.astra-status-badge.gojo-infinity {
  border-color: rgba(188, 238, 255, 0.72);
  color: #e9fbff;
  background:
    linear-gradient(135deg, rgba(23, 55, 86, 0.72), rgba(6, 19, 38, 0.82)),
    radial-gradient(circle at 50% 50%, rgba(176, 235, 255, 0.26), transparent 62%);
  box-shadow: 0 0 12px rgba(116, 210, 255, 0.26);
}

.sukuna-domain-slash-effect {
  position: absolute;
  left: 0;
  top: 0;
  width: 92px;
  height: 18px;
  pointer-events: none;
  z-index: 16;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(var(--slash-angle, 0deg)) scaleX(0.24);
  transform-origin: center;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95) 34%, rgba(184, 15, 47, 0.9) 52%, transparent);
  clip-path: polygon(0 54%, 42% 38%, 100% 45%, 58% 62%, 0 70%);
  filter:
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.56))
    drop-shadow(0 0 12px rgba(184, 15, 47, 0.46));
  transition:
    opacity 45ms ease,
    transform var(--slash-duration, 120ms) ease-out;
}

.sukuna-domain-slash-effect.visible {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(var(--slash-angle, 0deg)) scaleX(1);
}

.sukuna-shrine-build-effect {
  position: absolute;
  left: 0;
  top: 0;
  width: min(28vmin, 220px);
  height: min(28vmin, 220px);
  pointer-events: none;
  z-index: 14;
  opacity: 0;
  transform: translate(-50%, -40%) scale(0.72);
  transform-origin: center bottom;
  filter:
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 20px rgba(184, 15, 47, 0.32));
  transition:
    opacity 180ms ease,
    transform 780ms cubic-bezier(0.16, 0.84, 0.22, 1);
}

.sukuna-shrine-build-effect.visible {
  opacity: 0.96;
  transform: translate(-50%, -58%) scale(1);
}

.sukuna-shrine-build-effect img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

#board.sukuna-domain-interior {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 76, 96, 0.34), transparent 48%),
    radial-gradient(circle at 50% 50%, rgba(94, 18, 28, 0.7), rgba(42, 10, 16, 0.92) 78%),
    #321018;
}

#board.sukuna-domain-interior .tile {
  filter: brightness(1.22) saturate(1.22);
}

#board.sukuna-domain-interior .astra-tile-sukuna-domain-floor,
#board.sukuna-domain-interior .astra-tile-sukuna-domain-floor-alt {
  background-color: #55202b;
  box-shadow:
    inset 0 0 0 999px rgba(255, 80, 104, 0.1),
    inset 0 0 12px rgba(255, 38, 70, 0.14);
}

#board.sukuna-domain-interior .astra-tile-sukuna-domain-wall {
  background-color: #4b1822;
  filter: brightness(1.02) saturate(1.22);
}

#board.sukuna-domain-interior::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 78, 104, 0.08) 0 30%, transparent 54%, rgba(0, 0, 0, 0.16) 100%);
  mix-blend-mode: normal;
}

#board.gojo-void-interior {
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.82), rgba(155, 218, 255, 0.24) 18%, transparent 34%),
    radial-gradient(circle at 50% 48%, rgba(64, 121, 255, 0.22), rgba(2, 6, 22, 0.96) 76%),
    #01030d;
}

#board.gojo-void-interior .tile {
  background: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  filter: none;
}

#board.gojo-void-interior .astra-tile-gojo-void-floor {
  background: transparent !important;
  box-shadow: none !important;
}

#board.gojo-void-interior .astra-tile-gojo-void-wall {
  background: transparent !important;
  filter: none;
  box-shadow: none !important;
}

#board.gojo-void-interior::before {
  content: "";
  position: absolute;
  inset: -4%;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.98) 0 4%, transparent 8%),
    radial-gradient(circle at 88% 24%, rgba(255, 255, 255, 0.92) 0 6%, transparent 12%),
    radial-gradient(circle at 22% 78%, rgba(255, 255, 255, 0.9) 0 5%, transparent 10%),
    radial-gradient(circle at 70% 82%, rgba(255, 255, 255, 0.96) 0 7%, transparent 14%),
    repeating-conic-gradient(from 22deg at 50% 52%, transparent 0 8deg, rgba(255, 255, 255, 0.62) 8deg 10deg, transparent 10deg 18deg);
  mix-blend-mode: screen;
  animation: gojoVoidWhiteSplash 4.2s ease-in-out infinite;
}

#board.gojo-void-interior::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.16), transparent 28%),
    radial-gradient(circle at 50% 50%, transparent 0 42%, rgba(0, 4, 18, 0.32) 100%);
  mix-blend-mode: screen;
}

@keyframes gojoVoidWhiteSplash {
  0%,
  54% {
    opacity: 0;
    transform: scale(0.96) rotate(-1deg);
  }
  62% {
    opacity: 0.96;
    transform: scale(1.01) rotate(0deg);
  }
  78% {
    opacity: 0.68;
    transform: scale(1.04) rotate(1deg);
  }
  100% {
    opacity: 0;
    transform: scale(1.08) rotate(2deg);
  }
}

.astra-preview-object.astra-object-domain-orb {
  width: calc(42px * var(--object-radius-tiles, 1) * 2);
  height: calc(42px * var(--object-radius-tiles, 1) * 2);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  z-index: 8;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.15), transparent 16%),
    radial-gradient(circle, rgba(12, 12, 16, 0.96), rgba(0, 0, 0, 0.84) 58%, rgba(0, 0, 0, 0.14) 72%, transparent 76%);
  border: 1px solid rgba(210, 218, 226, 0.16);
  box-shadow:
    inset 0 0 24px rgba(0, 0, 0, 0.92),
    0 0 28px rgba(0, 0, 0, 0.58);
}

.astra-preview-object.gojo-void-domain-orb {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95) 0 16%, rgba(128, 205, 255, 0.48) 24%, rgba(0, 20, 64, 0.22) 56%, transparent 76%);
  border-color: rgba(214, 245, 255, 0.42);
  box-shadow:
    inset 0 0 30px rgba(255, 255, 255, 0.2),
    0 0 30px rgba(145, 219, 255, 0.44),
    0 0 68px rgba(58, 111, 255, 0.28);
}

.gojo-void-far-marker {
  width: clamp(96px, 18vw, 230px);
  height: clamp(96px, 18vw, 230px);
  transform: translate(-50%, -50%);
  border-radius: 999px;
  z-index: 10;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 9%, rgba(190, 234, 255, 0.44) 16%, rgba(82, 142, 255, 0.16) 34%, transparent 68%);
  filter:
    drop-shadow(0 0 26px rgba(255, 255, 255, 0.48))
    drop-shadow(0 0 52px rgba(118, 190, 255, 0.32));
}

.astra-preview-object.astra-object-domain-orb.state-expanding {
  width: calc(42px * var(--object-target-radius-tiles, var(--object-radius-tiles, 1)) * 2);
  height: calc(42px * var(--object-target-radius-tiles, var(--object-radius-tiles, 1)) * 2);
  animation: sukunaOrbExpandPulse 620ms ease-out infinite alternate;
  transform: translate(-50%, -50%) scale(var(--object-expansion-scale, 0.2));
  border-color: rgba(226, 232, 240, 0.28);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.22), transparent 14%),
    radial-gradient(circle, rgba(12, 12, 16, 0.98), rgba(0, 0, 0, 0.9) 54%, rgba(0, 0, 0, 0.34) 70%, transparent 76%);
  box-shadow:
    inset 0 0 28px rgba(0, 0, 0, 0.96),
    0 0 34px rgba(0, 0, 0, 0.74),
    0 0 12px rgba(226, 232, 240, 0.16);
}

.astra-preview-object.astra-object-domain-orb.state-expanding::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  border: 2px dashed rgba(226, 232, 240, 0.2);
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.5);
}

.astra-preview-object.astra-object-domain-orb.state-shattered {
  background:
    repeating-conic-gradient(from 12deg, rgba(226, 232, 240, 0.58) 0 4deg, transparent 4deg 19deg),
    radial-gradient(circle, rgba(0, 0, 0, 0.42), transparent 66%);
  opacity: 0.68;
}

.sukuna-domain-shrine-marker {
  width: calc(42px * var(--shrine-size-tiles, 3));
  height: calc(42px * var(--shrine-size-tiles, 3));
  transform: translate(-50%, -50%);
  z-index: 12;
  pointer-events: none;
  position: absolute;
  filter:
    drop-shadow(0 12px 22px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 34px rgba(255, 24, 58, 0.72))
    drop-shadow(0 0 58px rgba(184, 15, 47, 0.38));
}

.sukuna-domain-shrine-marker::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -1;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 42, 70, 0.4) 0 18%, rgba(184, 15, 47, 0.26) 42%, transparent 72%);
  filter: blur(2px);
}

.sukuna-domain-shrine-marker img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@keyframes meleeSwingFade {
  0% {
    opacity: 0;
    filter:
      drop-shadow(0 0 8px rgba(116, 219, 255, 0.18))
      drop-shadow(0 0 18px rgba(36, 136, 255, 0.12));
  }
  10% {
    opacity: 1;
  }
  70% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    filter:
      drop-shadow(0 0 4px rgba(116, 219, 255, 0.08))
      drop-shadow(0 0 10px rgba(36, 136, 255, 0.06));
  }
}

@keyframes sukunaAreaFade {
  0% {
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes sukunaDomainShellClose {
  0% {
    opacity: 0;
    filter: brightness(0.86) saturate(0.9);
  }
  8% {
    opacity: 1;
  }
  58% {
    opacity: 1;
    filter: brightness(0.72) saturate(0.88);
  }
  70% {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.98);
    filter: brightness(0.08) saturate(0.6);
  }
  83% {
    opacity: 0.96;
    background-color: rgba(0, 0, 0, 0.72);
    filter: brightness(0.9) saturate(1.2);
  }
  100% {
    opacity: 0;
    filter: brightness(1) saturate(1);
  }
}

@keyframes sukunaDomainShellLeft {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-172deg) scale(0.12);
  }
  8% {
    opacity: 0.86;
  }
  72% {
    opacity: 0.92;
    transform: translate(-50%, -50%) rotate(-7deg) scale(1);
  }
  100% {
    opacity: 0.18;
    transform: translate(-50%, -50%) rotate(0deg) scale(1.02);
  }
}

@keyframes sukunaDomainShellRight {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(172deg) scale(0.12);
  }
  8% {
    opacity: 0.86;
  }
  72% {
    opacity: 0.92;
    transform: translate(-50%, -50%) rotate(7deg) scale(1);
  }
  100% {
    opacity: 0.18;
    transform: translate(-50%, -50%) rotate(0deg) scale(1.02);
  }
}

@keyframes gojoPurpleOrbFuse {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateX(var(--gojo-orb-start, -44px)) scale(0.62);
  }
  12% {
    opacity: 1;
  }
  76% {
    opacity: 1;
    transform: translate(-50%, -50%) translateX(0) scale(1.08);
  }
  86% {
    opacity: 0.96;
    transform: translate(-50%, -50%) translateX(0) scale(0.56);
    filter: brightness(1.7);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translateX(86px) scale(0.18);
  }
}

@keyframes gojoPurpleRush {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--gojo-rush-angle, 0rad)) scale(0.2);
  }
  76% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--gojo-rush-angle, 0rad)) scale(0.34);
  }
  86% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--gojo-rush-angle, 0rad)) scale(0.82);
  }
  94% {
    opacity: 0.92;
    transform: translate(-50%, -50%) rotate(var(--gojo-rush-angle, 0rad)) scale(1.08);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--gojo-rush-angle, 0rad)) scale(1.28);
  }
}

@keyframes gojoPurpleWhiteFlash {
  0%,
  80% {
    opacity: 0;
    transform: scale(0.45);
  }
  88% {
    opacity: 0.92;
    transform: scale(1.05);
  }
  100% {
    opacity: 0;
    transform: scale(1.46);
  }
}

@keyframes gojoBlueSolidOrb {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.32);
    filter: brightness(1.2);
  }
  22% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.94);
    filter: brightness(1.55);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.22);
    filter: brightness(0.9);
  }
}

@keyframes gojoBlueOrbPulse {
  0%, 100% {
    opacity: 0.92;
    transform: translate(-50%, -50%) scale(0.96);
    filter: brightness(0.95);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.04);
    filter: brightness(1.1);
  }
}

@keyframes gojoBluePullSpiral {
  0% {
    opacity: 0;
    transform: rotate(0deg) scale(1.12);
  }
  24% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(270deg) scale(0.22);
  }
}

@keyframes oozePuddleBubble {
  from {
    transform: translate(-50%, -50%) scaleX(1) scaleY(1);
    filter: drop-shadow(0 0 9px rgba(86, 255, 77, 0.34));
  }

  to {
    transform: translate(-50%, -50%) scaleX(1.08) scaleY(0.94);
    filter: drop-shadow(0 0 15px rgba(205, 255, 105, 0.48));
  }
}

@keyframes gojoEmeraldOrbBloom {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.28);
  }
  28% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.88);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.42);
  }
}

@keyframes gojoEmeraldShockRing {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.36) rotate(0deg);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.36) rotate(72deg);
  }
}

@keyframes gojoRedVortexCharge {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.32);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(360deg) scale(1.08);
  }
}

@keyframes gojoRedOrbShoot {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateX(0) scale(0.42);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, -50%) translateX(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translateX(80%) scale(0.62);
  }
}

@keyframes gojoPurpleOrbDrive {
  0%,
  78% {
    opacity: 1;
    filter: brightness(1);
  }
  84% {
    opacity: 1;
    filter: brightness(1.8);
  }
  100% {
    opacity: 0;
    filter: brightness(0.7);
  }
}

@keyframes gojoPurpleGroundScar {
  0%,
  78% {
    opacity: 0;
    transform: translate(0, -50%) rotate(var(--gojo-scar-angle, 0rad)) scaleX(0.02);
  }
  90% {
    opacity: 0.86;
    transform: translate(0, -50%) rotate(var(--gojo-scar-angle, 0rad)) scaleX(0.72);
  }
  100% {
    opacity: 0.62;
    transform: translate(0, -50%) rotate(var(--gojo-scar-angle, 0rad)) scaleX(1);
  }
}

@keyframes gojoBlackFlashElectricity {
  0% {
    opacity: 0;
    transform: scale(0.42) rotate(0deg);
  }
  18% {
    opacity: 1;
    transform: scale(1.06) rotate(18deg);
  }
  100% {
    opacity: 0;
    transform: scale(1.42) rotate(52deg);
  }
}

@keyframes gojoBlackFlashRedArc {
  0% {
    filter: contrast(1.2) brightness(0.9);
  }
  42% {
    filter: contrast(1.7) brightness(1.35);
  }
  100% {
    filter: contrast(1.1) brightness(0.78);
  }
}

@keyframes projectileImpactBurst {
  0% {
    opacity: 0.98;
    transform: translate(-50%, -50%) scale(0.16);
  }
  36% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.78);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.28);
  }
}

@keyframes astraStatusBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -52%) scale(0.28) rotate(-8deg);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -56%) scale(1.72) rotate(10deg);
  }
}

@keyframes astraStatusSpin {
  from {
    transform: rotate(0deg) scale(0.88);
  }
  to {
    transform: rotate(220deg) scale(1.24);
  }
}

@keyframes waterPrisonStatusPulse {
  0% {
    opacity: 0;
    transform: translate(-50%, -52%) scale(0.26);
  }
  32% {
    opacity: 1;
    transform: translate(-50%, -52%) scale(0.94);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -56%) scale(1.55);
  }
}

@keyframes sukunaFugaFireGrow {
  0% {
    opacity: 0.98;
    transform: translate(-50%, -50%) scale(0.08);
    filter:
      drop-shadow(0 0 8px rgba(255, 243, 174, 0.78))
      drop-shadow(0 0 18px rgba(255, 74, 18, 0.62));
  }
  34% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.72);
  }
  70% {
    opacity: 0.96;
    transform: translate(-50%, -50%) scale(1.05);
  }
  88% {
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(1.18);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.3);
    filter:
      drop-shadow(0 0 20px rgba(255, 96, 22, 0.7))
      drop-shadow(0 0 54px rgba(255, 43, 18, 0.34));
  }
}

@keyframes sukunaFugaReleaseBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.18) rotate(0deg);
    filter:
      drop-shadow(0 0 8px rgba(255, 230, 124, 0.72))
      drop-shadow(0 0 18px rgba(255, 54, 18, 0.56));
  }
  18% {
    opacity: 0.98;
  }
  66% {
    opacity: 0.74;
    transform: translate(-50%, -50%) scale(1.0) rotate(18deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.36) rotate(32deg);
    filter:
      drop-shadow(0 0 16px rgba(255, 90, 20, 0.52))
      drop-shadow(0 0 30px rgba(40, 8, 6, 0.38));
  }
}

@keyframes sukunaDismantleReleaseBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.18) rotate(-10deg);
    filter:
      drop-shadow(0 0 6px rgba(245, 238, 248, 0.6))
      drop-shadow(0 0 14px rgba(190, 18, 48, 0.52));
  }
  18% {
    opacity: 0.98;
  }
  58% {
    opacity: 0.78;
    transform: translate(-50%, -50%) scale(0.86) rotate(12deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.18) rotate(28deg);
    filter:
      drop-shadow(0 0 16px rgba(190, 18, 48, 0.34))
      drop-shadow(0 0 24px rgba(0, 0, 0, 0.42));
  }
}

@keyframes sukunaOrbExpandPulse {
  from {
    filter: brightness(0.92) saturate(0.92);
  }
  to {
    filter: brightness(1.08) saturate(1.08);
  }
}

.muzzle-flash-effect {
  position: absolute;
  left: 0;
  top: 0;
  width: 19px;
  height: 10px;
  pointer-events: none;
  z-index: 11;
  opacity: 0;
  transform:
    translate(-18%, -50%)
    rotate(var(--muzzle-angle, 0rad))
    scale(0.62);
  transform-origin: 10% 50%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 76% 50%, rgba(255, 255, 230, 0.98) 0 18%, rgba(255, 220, 94, 0.9) 19% 42%, rgba(255, 115, 48, 0.42) 43% 68%, transparent 69%);
  filter:
    drop-shadow(0 0 6px rgba(255, 214, 91, 0.78))
    drop-shadow(0 0 12px rgba(255, 117, 46, 0.42));
  transition:
    opacity 42ms ease,
    transform 95ms cubic-bezier(0.2, 0.85, 0.25, 1);
}

.muzzle-flash-effect.visible {
  opacity: 1;
  transform:
    translate(-18%, -50%)
    rotate(var(--muzzle-angle, 0rad))
    scale(1);
}

.bow-release-effect {
  position: absolute;
  left: 0;
  top: 0;
  width: 19px;
  height: 19px;
  pointer-events: none;
  z-index: 11;
  opacity: 0;
  transform:
    translate(-52%, -50%)
    rotate(var(--bow-release-angle, 0rad))
    scale(0.54);
  transform-origin: center;
  border-radius: 999px;
  border-right: 2px solid rgba(244, 250, 255, 0.96);
  border-top: 1px solid rgba(164, 214, 255, 0.52);
  filter:
    drop-shadow(0 0 5px rgba(220, 242, 255, 0.54))
    drop-shadow(0 0 10px rgba(108, 190, 255, 0.22));
  transition:
    opacity 55ms ease,
    transform 150ms cubic-bezier(0.2, 0.85, 0.25, 1);
}

.bow-release-effect.visible {
  opacity: 0.88;
  transform:
    translate(-52%, -50%)
    rotate(var(--bow-release-angle, 0rad))
    scale(1);
}

.bullet-casing-effect {
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 2px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  background:
    linear-gradient(90deg, rgba(255, 238, 166, 0.95), var(--casing-color, #d9a840) 58%, rgba(88, 54, 18, 0.92));
  box-shadow:
    0 0 0 1px rgba(54, 34, 12, 0.38),
    0 0 5px rgba(255, 212, 118, 0.2);
  transform: translate(-50%, -50%) rotate(0deg);
  transition:
    transform 620ms cubic-bezier(0.12, 0.72, 0.22, 1),
    opacity 130ms ease;
  transition-delay: var(--casing-delay, 0ms);
}

.bullet-casing-effect.visible {
  opacity: 0.9;
  transform:
    translate(calc(-50% + var(--casing-x, 0px)), calc(-50% + var(--casing-y, 0px)))
    rotate(var(--casing-rotation, 120deg));
  animation: bulletCasingFade 10000ms linear var(--casing-delay, 0ms) forwards;
}

.bullet-casing-effect.shell-casing {
  width: 6px;
  height: 3px;
  background:
    linear-gradient(90deg, rgba(255, 160, 121, 0.96), var(--casing-color, #d6382f) 58%, rgba(90, 18, 12, 0.92));
  box-shadow:
    0 0 0 1px rgba(74, 21, 12, 0.42),
    0 0 6px rgba(255, 104, 70, 0.24);
}

.bullet-casing-effect.energy-cell {
  width: 7px;
  height: 3px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(215, 251, 255, 0.98), rgba(64, 211, 255, 0.9) 46%, rgba(9, 77, 112, 0.92));
  box-shadow:
    0 0 0 1px rgba(105, 230, 255, 0.34),
    0 0 8px rgba(64, 211, 255, 0.38);
}

.bullet-casing-effect.energy-cell::after {
  content: "";
  position: absolute;
  left: 48%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle, rgba(156, 226, 232, 0.24), rgba(31, 48, 54, 0.18) 52%, transparent 70%);
  transform: translate(-50%, -50%) scale(0.42);
  animation: energyCellSmoke 1400ms ease-out var(--casing-smoke-delay, 180ms) forwards;
}

@keyframes bulletCasingFade {
  0% {
    opacity: 0.92;
  }
  62% {
    opacity: 0.82;
  }
  92% {
    opacity: 0.74;
  }
  100% {
    opacity: 0;
  }
}

@keyframes energyCellSmoke {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.34);
  }
  18% {
    opacity: 0.58;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -110%) scale(1.65);
  }
}

.damage-popup {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 92;
  opacity: 0;
  transform: translate(-50%, -18%) scale(0.82);
  font-size: 0.95rem;
  font-weight: 800;
  color: #eef7ff;
  background: rgba(4, 12, 16, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.55),
    0 0 10px rgba(0, 0, 0, 0.35);
  box-shadow:
    0 0 0 1px rgba(3, 10, 13, 0.82),
    0 10px 20px rgba(0, 0, 0, 0.28);
  transition:
    opacity 90ms ease,
    transform 260ms cubic-bezier(0.2, 0.85, 0.25, 1);
}

.damage-popup.visible {
  opacity: 1;
  transform: translate(-50%, -118%) scale(1);
}

.damage-popup.kinetic {
  color: #ffcf6f;
  border-color: rgba(255, 207, 111, 0.28);
}

.damage-popup.energy {
  color: #76e7ff;
  border-color: rgba(118, 231, 255, 0.28);
}

.damage-popup.magic {
  color: #c99bff;
  border-color: rgba(201, 155, 255, 0.28);
}

.damage-popup.missed {
  color: #e8edf2;
  border-color: rgba(232, 237, 242, 0.22);
}

.damage-popup.crit {
  color: #ff7474;
  border-color: rgba(255, 116, 116, 0.32);
  box-shadow:
    0 0 0 1px rgba(3, 10, 13, 0.82),
    0 0 18px rgba(255, 84, 84, 0.18),
    0 10px 20px rgba(0, 0, 0, 0.28);
}

.damage-popup.defense {
  border-color: rgba(105, 212, 255, 0.38);
  background: rgba(5, 16, 22, 0.82);
}

.damage-popup-value {
  line-height: 1;
}

.damage-popup-crit-icon,
.damage-popup-defense-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  object-fit: contain;
}

.damage-popup-crit-icon {
  filter:
    drop-shadow(0 0 4px rgba(255, 86, 86, 0.48))
    drop-shadow(0 0 9px rgba(255, 86, 86, 0.24));
}

.damage-popup-defense-icon {
  filter:
    drop-shadow(0 0 4px rgba(105, 212, 255, 0.48))
    drop-shadow(0 0 9px rgba(105, 212, 255, 0.22));
}

.astra-ground-impact {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--ground-size, 12px);
  height: var(--ground-size, 12px);
  z-index: 78;
  pointer-events: none;
  opacity: 0;
  contain: layout paint;
  will-change: transform, opacity;
  transform: translate(-50%, -50%) rotate(var(--ground-rot, 0deg)) scale(0.68);
  animation: astra-ground-impact-settle 220ms cubic-bezier(0.2, 0.72, 0.18, 1) forwards;
  animation-delay: var(--ground-delay, 0ms);
}

.astra-ground-impact.blood {
  border-radius: 62% 38% 58% 42% / 45% 62% 38% 55%;
  background:
    radial-gradient(circle at 35% 30%, rgba(239, 68, 68, 0.7), rgba(127, 29, 29, 0.78) 48%, rgba(55, 8, 8, 0.82));
  box-shadow:
    0 0 9px rgba(127, 29, 29, 0.24),
    0 0 18px rgba(69, 10, 10, 0.18);
}

.astra-ground-impact.blood::before,
.astra-ground-impact.blood::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(127, 29, 29, 0.72);
}

.astra-ground-impact.blood::before {
  width: 42%;
  height: 30%;
  right: -18%;
  bottom: 10%;
}

.astra-ground-impact.blood::after {
  width: 24%;
  height: 22%;
  left: -12%;
  top: 18%;
}

.astra-ground-impact.metal {
  width: calc(var(--ground-size, 9px) * 1.55);
  height: calc(var(--ground-size, 9px) * 0.72);
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.82), rgba(148, 163, 184, 0.64) 52%, rgba(51, 65, 85, 0.72));
  box-shadow:
    0 0 8px rgba(226, 232, 240, 0.22),
    0 0 13px rgba(125, 211, 252, 0.12);
  clip-path: polygon(10% 8%, 100% 30%, 78% 100%, 0 72%);
}

.astra-ground-impact.metal.break-burst {
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.28),
    0 0 18px rgba(125, 211, 252, 0.2);
}

.astra-ground-impact.cursed-scorch {
  width: calc(var(--ground-size, 38px) * 1.12);
  height: calc(var(--ground-size, 38px) * 1.12);
  border-radius: 999px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: var(--ground-opacity, 0.72);
  mix-blend-mode: multiply;
  filter:
    drop-shadow(0 0 5px rgba(28, 255, 102, 0.16))
    saturate(1.08)
    contrast(1.08);
}

.astra-ground-impact.fury-scorch {
  width: calc(var(--ground-size, 38px) * 1.18);
  height: calc(var(--ground-size, 38px) * 1.18);
  border-radius: 999px;
  opacity: var(--ground-opacity, 0.74);
  mix-blend-mode: multiply;
  background:
    radial-gradient(ellipse at 50% 52%, rgba(10, 3, 1, 0.96) 0 30%, rgba(98, 9, 4, 0.88) 46%, rgba(255, 83, 24, 0.38) 61%, transparent 74%),
    radial-gradient(ellipse at 45% 48%, rgba(255, 189, 73, 0.58), transparent 32%);
  filter:
    drop-shadow(0 0 6px rgba(255, 48, 16, 0.35))
    drop-shadow(0 0 12px rgba(255, 193, 75, 0.2));
}

.astra-ground-impact.fury-scorch::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 999px;
  background:
    linear-gradient(50deg, transparent 0 34%, rgba(255, 122, 30, 0.72) 40% 46%, transparent 52%),
    linear-gradient(-22deg, transparent 0 42%, rgba(255, 216, 93, 0.46) 48% 53%, transparent 62%);
  opacity: 0.7;
}

.astra-ground-impact.nuclear-scorch {
  width: var(--ground-size, 120px);
  height: var(--ground-size, 120px);
  border-radius: 52% 48% 58% 42% / 45% 56% 44% 55%;
  opacity: var(--ground-opacity, 0.88);
  mix-blend-mode: multiply;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(1, 18, 24, 0.98) 0 35%, rgba(4, 46, 55, 0.82) 56%, rgba(13, 82, 96, 0.38) 72%, transparent 86%),
    radial-gradient(ellipse at 38% 42%, rgba(138, 245, 255, 0.2), transparent 42%);
  filter:
    drop-shadow(0 0 8px rgba(48, 221, 255, 0.18))
    saturate(1.18);
}

.astra-ground-impact.nuclear-scorch::before {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: inherit;
  background:
    linear-gradient(38deg, transparent 0 34%, rgba(155, 247, 255, 0.34) 40% 43%, transparent 52%),
    linear-gradient(-26deg, transparent 0 44%, rgba(60, 218, 255, 0.24) 50% 52%, transparent 62%);
  opacity: 0.62;
}

.astra-hit-fragment {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--hit-size, 4px);
  height: var(--hit-size, 4px);
  z-index: 88;
  pointer-events: none;
  opacity: 0;
  contain: layout paint;
  will-change: transform, opacity;
  transform: translate(-50%, -50%) rotate(0deg) scale(0.7);
  animation: astra-hit-fragment-flight var(--hit-duration, 760ms) cubic-bezier(0.17, 0.72, 0.22, 1) forwards;
}

.astra-hit-fragment.metal {
  border-radius: 1px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(148, 163, 184, 0.82) 48%, rgba(71, 85, 105, 0.9));
  box-shadow:
    0 0 7px rgba(226, 232, 240, 0.5),
    0 0 13px rgba(125, 211, 252, 0.2);
  clip-path: polygon(12% 0, 100% 28%, 74% 100%, 0 72%);
}

.astra-hit-fragment.metal.break-burst {
  box-shadow:
    0 0 9px rgba(255, 255, 255, 0.62),
    0 0 17px rgba(125, 211, 252, 0.32);
}

.astra-hit-fragment.blood {
  border-radius: 999px 999px 999px 3px;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 183, 183, 0.9), rgba(185, 28, 28, 0.9) 36%, rgba(69, 10, 10, 0.94));
  box-shadow:
    0 0 7px rgba(220, 38, 38, 0.38),
    0 0 14px rgba(127, 29, 29, 0.24);
}

@keyframes astra-hit-fragment-flight {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.65);
  }
  12% {
    opacity: 0.92;
  }
  72% {
    opacity: 0.86;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--hit-dx, 0px)), calc(-50% + var(--hit-dy, 0px))) rotate(var(--hit-rot, 180deg)) scale(0.82);
  }
}

@keyframes astra-ground-impact-settle {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--ground-rot, 0deg)) scale(0.68);
  }
  100% {
    opacity: var(--ground-opacity, 0.68);
    transform: translate(-50%, -50%) rotate(var(--ground-rot, 0deg)) scale(1);
  }
}

@keyframes astra-life-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.78);
  }
  18% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.55);
  }
}

.astra-screen-effect-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.astra-screen-effect-layer::before,
.astra-screen-effect-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.astra-screen-effect-layer::before {
  border: 3px solid rgba(255, 72, 72, 0);
  box-shadow: inset 0 0 0 rgba(255, 72, 72, 0);
}

.astra-screen-effect-layer.damage-flash::before {
  animation: astraDamageOutline 1000ms ease-out;
}

.astra-screen-effect-layer[data-life-state="knocked"]::before {
  border-color: rgba(255, 218, 84, 0.5);
  box-shadow:
    inset 0 0 20px rgba(255, 218, 84, 0.16),
    inset 0 0 2px rgba(255, 248, 188, 0.38);
}

.astra-screen-effect-layer[data-life-state="dead"]::before {
  border-color: rgba(255, 72, 72, 0.58);
  box-shadow:
    inset 0 0 34px rgba(255, 72, 72, 0.22),
    inset 0 0 90px rgba(0, 0, 0, 0.3);
}

.astra-screen-effect-layer[data-life-state="dead"]::after {
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  width: min(34vw, 260px);
  height: min(38vw, 290px);
  transform: translate(-50%, -50%);
  opacity: 0.76;
  background-image: url("/static/assets/icons/dead.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter:
    drop-shadow(0 0 18px rgba(255, 72, 72, 0.52))
    drop-shadow(0 0 46px rgba(255, 72, 72, 0.24));
}

.game-load-fade-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(14, 29, 25, 0.24), rgba(1, 3, 4, 0.94) 46%, #010304 78%),
    #010304;
  opacity: 0;
  transition: opacity 760ms ease;
}

.game-load-fade-layer.visible {
  opacity: 1;
  pointer-events: auto;
  transition-duration: 130ms;
}

.game-load-fade-layer.leaving {
  opacity: 0;
  transition-duration: 760ms;
}

body.sandevistan-screen-active::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 95;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(40, 255, 151, 0.2), transparent 18% 82%, rgba(60, 238, 255, 0.18)),
    radial-gradient(circle at 50% 50%, rgba(40, 255, 151, 0.08) 0 32%, rgba(60, 238, 255, 0.16) 100%);
  box-shadow:
    inset 0 0 0 4px rgba(40, 255, 151, 0.32),
    inset 0 0 80px rgba(60, 238, 255, 0.22),
    inset 0 0 160px rgba(40, 255, 151, 0.12);
  mix-blend-mode: screen;
  animation: sandevistanScreenPulse 620ms ease-in-out infinite alternate;
}

body.sandevistan-screen-active::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 94;
  pointer-events: none;
  opacity: 0.14;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 22px);
  mix-blend-mode: screen;
}

body.panic-screen-active::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 93;
  pointer-events: none;
  opacity: 0.16;
  background:
    repeating-linear-gradient(115deg, rgba(255, 154, 46, 0.28) 0 2px, transparent 2px 18px),
    radial-gradient(circle at 50% 50%, rgba(255, 60, 28, 0.18), transparent 58%);
  mix-blend-mode: screen;
  animation: astraPanicScreenJump 0.32s steps(2, end) infinite;
}

body.panic-screen-active .quick-action-button,
body.panic-screen-active .ability-card,
body.panic-screen-active .action-slot-button,
body.panic-screen-active .action-button,
body.panic-screen-active .melee-slot-button,
body.panic-screen-active .hud-icon-button,
body.panic-screen-active .control-button {
  animation: astraPanicUiJitter 0.34s steps(2, end) infinite;
}

body.panic-screen-active .marker.entity-marker.aiming .marker-aim-cone,
.board.panic-screen-active .marker.entity-marker.aiming .marker-aim-cone {
  animation: astraPanicAimJump 0.36s steps(2, end) infinite;
}

@keyframes astraDamageOutline {
  0% {
    border-color: rgba(255, 72, 72, 0);
    box-shadow: inset 0 0 0 rgba(255, 72, 72, 0);
  }
  14% {
    border-color: rgba(255, 72, 72, 0.82);
    box-shadow: inset 0 0 22px rgba(255, 72, 72, 0.18);
  }
  100% {
    border-color: rgba(255, 72, 72, 0);
    box-shadow: inset 0 0 0 rgba(255, 72, 72, 0);
  }
}

@keyframes astraPanicScreenJump {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(3px, -2px) rotate(0.35deg);
  }
  100% {
    transform: translate(-2px, 2px) rotate(-0.3deg);
  }
}

@keyframes astraPanicUiJitter {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(4px, -3px) rotate(1.6deg);
  }
  66% {
    transform: translate(-3px, 3px) rotate(-1.4deg);
  }
  100% {
    transform: translate(2px, -1px) rotate(0.8deg);
  }
}

@keyframes astraPanicAimJump {
  0% {
    transform: rotate(calc(var(--aim-angle, 0deg) - 7deg));
  }
  50% {
    transform: rotate(calc(var(--aim-angle, 0deg) + 13deg)) translateX(7%);
  }
  100% {
    transform: rotate(calc(var(--aim-angle, 0deg) - 16deg)) translateX(-5%);
  }
}

@keyframes astraPanicMarkerJump {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  50% {
    transform: translate(calc(-50% + 2px), calc(-50% - 2px)) rotate(3deg);
  }
  100% {
    transform: translate(calc(-50% - 2px), calc(-50% + 2px)) rotate(-3deg);
  }
}

@keyframes sandevistanMarkerPulse {
  from {
    opacity: 0.58;
    transform: scale(0.96);
  }
  to {
    opacity: 0.96;
    transform: scale(1.06);
  }
}

@keyframes sandevistanFieldPulse {
  from {
    opacity: 0.28;
    transform: scale(0.94);
  }
  to {
    opacity: 0.54;
    transform: scale(1.04);
  }
}

@keyframes sandevistanActivationBurst {
  0% {
    opacity: 0.95;
    transform: scale(0.28);
    filter: saturate(1.8) brightness(1.28);
  }
  58% {
    opacity: 0.72;
  }
  100% {
    opacity: 0;
    transform: scale(1.32);
    filter: saturate(1.2) brightness(1);
  }
}

@keyframes sandevistanScreenPulse {
  from {
    opacity: 0.74;
    filter: saturate(1.15);
  }
  to {
    opacity: 1;
    filter: saturate(1.45) contrast(1.04);
  }
}

.ability-title {
  display: block;
  font-weight: 700;
  font-size: 0.76rem;
  line-height: 1.12;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ability-meta,
.ability-desc {
  display: block;
  font-size: 0.63rem;
  line-height: 1.24;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ability-desc {
  display: none;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.log-panel {
  min-height: 160px;
}

.event-log {
  display: grid;
  gap: 8px;
  max-height: 160px;
  overflow: auto;
}

.setting-card-wide {
  grid-column: 1 / -1;
}

.control-editor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.control-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  text-align: left;
}

.control-chip.selected {
  border-color: rgba(255, 212, 118, 0.42);
  background: linear-gradient(135deg, rgba(255, 212, 118, 0.16), rgba(105, 212, 255, 0.08));
}

.control-chip-index {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-soft);
  font-size: 0.78rem;
  flex: none;
}

.control-chip-name {
  min-width: 0;
}

.layout-preview-shell {
  margin-top: 12px;
}

.layout-preview {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border-radius: 28px;
  overflow: visible;
  border: 1px solid rgba(105, 212, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(10, 22, 28, 0.96), rgba(6, 13, 17, 0.94)),
    radial-gradient(circle at top, rgba(105, 212, 255, 0.1), transparent 40%);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  touch-action: none;
}

.layout-preview.layout-preview-landscape {
  width: min(100%, 720px);
  aspect-ratio: 16 / 9;
}

.layout-preview-board {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 10% 10%;
  opacity: 0.48;
}

.live-layout-preview-board {
  box-shadow: inset 0 0 0 1px rgba(105, 212, 255, 0.12);
}

.layout-control {
  position: absolute;
  min-width: 92px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: var(--control-preview-radius, 16px);
  border: 1px solid rgba(255, 212, 118, 0.42);
  background: rgba(8, 19, 24, 0.94);
  color: var(--ink);
  transform: translate(-50%, -50%) scale(var(--control-preview-scale, 1));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  z-index: 1;
  display: grid;
  gap: 6px;
  place-items: center;
  text-align: center;
}

.layout-control.layout-move-button {
  width: clamp(42px, 15%, 64px);
  height: clamp(42px, 15%, 64px);
  min-width: 0;
  min-height: 0;
  padding: 0;
  font-size: 1.35rem;
  border-color: var(--line);
  background: rgba(8, 19, 24, 0.92);
}

.layout-control.layout-move-stick {
  width: clamp(86px, 24%, 124px);
  height: clamp(86px, 24%, 124px);
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 999px;
  border-color: rgba(105, 212, 255, 0.42);
  background:
    radial-gradient(circle at center, rgba(105, 212, 255, 0.16) 0 25%, transparent 26%),
    rgba(8, 19, 24, 0.92);
}

.layout-control.layout-move-stick .layout-control-icon {
  width: 38px;
  height: 38px;
}

.layout-control.selected {
  border-color: rgba(255, 212, 118, 0.82);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    0 0 0 2px rgba(255, 212, 118, 0.18);
}

.layout-control span {
  pointer-events: none;
}

.layout-control-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.layout-control-text {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.layout-control.layout-control-abilityBar {
  min-width: clamp(112px, 36%, 150px);
}

.layout-control.layout-control-abilityBar.layout-control-stackedAbilityBar {
  min-width: clamp(112px, 34%, 146px);
  min-height: 82px;
}

.layout-ability-grid {
  display: grid;
  grid-template-columns: repeat(2, 18px);
  gap: 4px;
  pointer-events: none;
}

.layout-ability-grid i {
  width: 18px;
  height: 10px;
  border-radius: 3px;
  background: rgba(105, 212, 255, 0.36);
}

.hud-layout-preview .layout-control-healthHud {
  width: 128px;
  min-width: 128px;
  height: 44px;
  min-height: 44px;
  border-radius: 18px;
  color: #8dffab;
}

.hud-layout-preview .layout-control-statusRail {
  width: 52px;
  min-width: 52px;
  height: 96px;
  min-height: 96px;
  border-radius: 18px;
  color: #69d4ff;
}

.log-line {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.legacy-room-view {
  display: none !important;
}

.mono {
  font-family: Consolas, "Courier New", monospace;
}

.control-studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.control-studio-grid.desktop {
  grid-template-columns: minmax(0, 1fr);
}

.control-studio-preview-card,
.control-studio-sidebar {
  display: grid;
  gap: 14px;
}

.desktop-keybind-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.desktop-keybind-card {
  width: 100%;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  display: grid;
  gap: 8px;
  text-align: left;
}

.desktop-keybind-card.listening {
  border-color: rgba(255, 212, 118, 0.42);
  background: linear-gradient(135deg, rgba(255, 212, 118, 0.16), rgba(105, 212, 255, 0.08));
}

.desktop-keybind-label {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.desktop-keybind-value {
  font-size: 1rem;
}

@media (max-width: 1200px) {
  .primary-grid,
  .secondary-grid,
  .split-layout,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  #play-view.active {
    grid-template-columns: 1fr;
  }

  .play-browser-panel {
    position: static;
  }

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

  .play-filter-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .topbar-actions {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .viewer-card {
    min-width: 0;
  }
}

@media (max-width: 1000px) {
  body.mobile-ui.live-match-view .app-shell {
    padding: 8px;
    gap: 8px;
  }

  body.mobile-ui.live-match-view .topbar {
    position: fixed;
    left: calc(8px + env(safe-area-inset-left));
    top: calc(8px + env(safe-area-inset-top));
    z-index: 45;
    width: auto;
    min-height: 0;
    padding: 0;
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.mobile-ui.live-match-view .topbar .brand-block,
  body.mobile-ui.live-match-view .topbar .topbar-actions {
    display: none;
  }

  body.mobile-ui.live-match-view .menu-toggle-button {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(105, 212, 255, 0.32);
    border-radius: 16px;
    background: rgba(4, 10, 14, 0.82);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(8px);
  }

  body.mobile-ui.live-match-view .live-match-hero {
    position: absolute;
    inset: 0 auto auto 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    background: none;
    box-shadow: none;
  }

  body.mobile-ui.live-match-view .live-match-hero > div:not(.quick-actions) {
    display: none;
  }

  body.mobile-ui.live-match-view .play-browser-panel,
  body.mobile-ui.live-match-view .room-lobby-panel,
  body.mobile-ui.live-match-view .empty-state,
  body.mobile-ui.live-match-view .match-focus-panel,
  body.mobile-ui.live-match-view .log-panel {
    display: none !important;
  }

  body.mobile-ui.live-match-view .combat-stage {
    display: block;
    gap: 8px;
    height: 0;
    overflow: visible;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.mobile-ui #play-view.active {
    grid-template-columns: 1fr;
  }

  body.mobile-ui .play-browser-panel {
    position: static;
    max-height: none;
  }

  body.mobile-ui .viewer-card {
    display: grid;
    min-width: 0;
    grid-template-columns: 58px minmax(0, 1fr);
    max-width: min(100%, 280px);
  }

  body.mobile-ui .topbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body.mobile-ui .topbar-actions {
    grid-column: auto;
    justify-self: end;
  }

  body.mobile-ui #play-view.match-live .play-filter-grid {
    display: none;
  }

  body.mobile-ui .board-wrap {
    order: 1;
    padding: 12px 12px 156px;
  }

  body.mobile-ui.live-match-view .board-wrap {
    position: fixed;
    inset: 0;
    z-index: 18;
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    padding: calc(8px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) calc(112px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left));
    border-radius: 0;
    overflow: hidden;
  }

  body.mobile-ui .board-stage {
    width: 100%;
  }

  body.mobile-ui .match-focus-panel {
    order: 2;
  }

  body.mobile-ui .match-focus {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.mobile-ui .match-focus-panel {
    display: none;
  }

  body.mobile-ui .ability-dock-panel {
    order: 3;
    position: static;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    z-index: 25;
    padding: 0;
    border-radius: 18px;
  }

  body.mobile-ui .ability-dock-head {
    display: none;
  }

  body.mobile-ui .ability-dock {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    overflow: visible;
    touch-action: none;
  }

  body.mobile-ui .log-panel {
    display: none;
  }

  body.mobile-ui .move-pad {
    --stick-angle: 90deg;
    position: fixed;
    z-index: 30;
    width: 154px;
    height: 154px;
    display: none;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(105, 212, 255, 0.52);
    background:
      radial-gradient(circle at center, rgba(105, 212, 255, 0.24) 0 24%, transparent 25%),
      radial-gradient(circle at center, rgba(4, 10, 14, 0.96), rgba(4, 10, 14, 0.78));
    box-shadow:
      0 14px 34px rgba(0, 0, 0, 0.48),
      inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    touch-action: none;
    user-select: none;
  }

  body.mobile-ui.live-match-view .mobile-look-cursor {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 44;
    display: block;
    width: 34px;
    height: 34px;
    border: 2px solid rgba(105, 212, 255, 0.92);
    border-radius: 999px;
    background:
      radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 10%, rgba(105, 212, 255, 0.36) 11% 34%, rgba(4, 10, 14, 0.18) 35% 100%);
    box-shadow:
      0 0 0 1px rgba(4, 10, 14, 0.74),
      0 0 16px rgba(105, 212, 255, 0.4),
      inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translate3d(var(--look-x, -200px), var(--look-y, -200px), 0) translate(-50%, -50%);
    transition: opacity 70ms ease;
    will-change: transform, opacity;
    contain: layout paint style;
  }

  body.mobile-ui.live-match-view .mobile-look-cursor::after {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: inherit;
  }

  body.mobile-ui.live-match-view .mobile-look-cursor.visible {
    opacity: 1;
  }

  body.mobile-ui.live-match-view[data-mobile-movement="screen"] .board,
  body.mobile-ui.live-match-view[data-mobile-movement="joystick"] .move-pad,
  body.mobile-ui.live-match-view[data-mobile-movement="buttons"] .move-button {
    touch-action: none;
    overscroll-behavior: none;
  }

  body.mobile-ui.live-match-view:not([data-mobile-movement="screen"]) .board {
    touch-action: pan-y;
    overscroll-behavior: auto;
  }

  body.mobile-ui .move-center {
    display: none;
  }

  body.mobile-ui .move-button {
    display: none;
    position: fixed;
    width: 64px;
    min-width: 64px;
    min-height: 64px;
    z-index: 30;
  }

  body.mobile-ui.live-match-view[data-mobile-movement="buttons"] .move-pad {
    display: contents;
  }

  body.mobile-ui.live-match-view[data-mobile-movement="buttons"] .move-button {
    display: grid;
  }

  body.mobile-ui.live-match-view[data-mobile-movement="joystick"] .move-pad {
    display: grid;
  }

  body.mobile-ui .move-stick-face {
    display: none;
    place-items: center;
    position: absolute;
    inset: 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
  }

  body.mobile-ui.live-match-view[data-mobile-movement="joystick"] .move-stick-face {
    display: grid;
  }

  body.mobile-ui .move-stick-ring {
    position: absolute;
    inset: 20px;
    border-radius: 999px;
    border: 1px dashed rgba(105, 212, 255, 0.24);
  }

  body.mobile-ui .move-stick-arrow {
    width: 48px;
    height: 48px;
    color: var(--player);
    transform: rotate(var(--stick-angle));
    transform-origin: 50% 62%;
    opacity: 0.72;
    transition: opacity 120ms ease;
  }

  body.mobile-ui .move-stick-arrow::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: currentColor;
    clip-path: polygon(50% 0, 90% 62%, 62% 52%, 62% 100%, 38% 100%, 38% 52%, 10% 62%);
    filter: drop-shadow(0 0 10px rgba(105, 212, 255, 0.32));
  }

  body.mobile-ui .move-pad.aiming .move-stick-arrow {
    opacity: 1;
  }

  body.mobile-ui .quick-actions {
    display: contents;
  }

  body.mobile-ui .astra-extract-button {
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    right: 12px;
    z-index: 94;
    min-height: 46px;
    max-width: min(184px, calc(100vw - 24px));
    padding: 0 13px;
    font-size: 13px;
  }

  body.mobile-ui .shell-drawer .astra-extract-button {
    position: static;
    width: 100%;
    max-width: none;
    min-height: 44px;
  }

  body.mobile-ui .melee-slot-bar {
    display: contents;
  }

  body.mobile-ui .quick-action-button {
    position: fixed;
    width: 78px;
    min-width: 78px;
    height: 78px;
    min-height: 78px;
    z-index: 29;
  }

  body.mobile-ui .melee-slot-button {
    position: fixed;
    width: 86px;
    min-width: 86px;
    height: 86px;
    min-height: 86px;
    z-index: 29;
    padding: 7px;
    justify-items: center;
    text-align: center;
    touch-action: none;
    user-select: none;
  }

  body.mobile-ui .melee-slot-button[data-shape="square"] {
    border-radius: 14px;
  }

  body.mobile-ui .melee-slot-button[data-shape="rounded"] {
    border-radius: 18px;
  }

  body.mobile-ui .melee-slot-button[data-shape="pill"] {
    border-radius: 999px;
  }

  body.mobile-ui .melee-slot-button .melee-slot-index,
  body.mobile-ui .melee-slot-button .melee-slot-meta {
    font-size: 0.62rem;
  }

  body.mobile-ui .melee-slot-button .melee-slot-name {
    max-width: 100%;
    font-size: 0.72rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.mobile-ui .ability-button {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 7px 5px;
  }

  body.mobile-ui .mobile-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 25;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(8, 19, 24, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
  }

  body.mobile-ui.live-match-view .mobile-dock {
    display: none;
  }

  body.mobile-ui:not(.live-match-view) {
    scroll-padding-bottom: calc(240px + env(safe-area-inset-bottom));
  }

  body.mobile-ui:not(.live-match-view) .views {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 700px) {
  .app-shell {
    padding: 14px 14px calc(240px + env(safe-area-inset-bottom));
  }

  .topbar,
  .panel,
  .board-wrap,
  .clan-war-shell,
  .shell-drawer {
    border-radius: 20px;
  }

  .topbar,
  .hero-card,
  .hero,
  .achievement-hero {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .topbar {
    padding: 14px;
  }

  .shell-drawer {
    top: 10px;
    left: 10px;
    bottom: 10px;
    width: min(310px, calc(100vw - 20px));
    max-height: calc(100dvh - 20px);
    padding: 14px;
    gap: 12px;
    grid-template-rows: auto auto auto minmax(0, 1fr);
  }

  .shell-drawer .drawer-profile {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 8px;
  }

  .shell-drawer .viewer-avatar-frame {
    width: 48px;
    height: 48px;
  }

  .shell-drawer .drawer-nav {
    gap: 7px;
    align-content: stretch;
  }

  .shell-drawer .nav-button {
    min-height: 0;
    padding: 9px 10px;
    font-size: 0.9rem;
  }

  .metric-grid,
  .compact-grid,
  .shop-card-grid,
  .market-browser-grid,
  .market-filter-grid,
  .market-sell-grid,
  .market-seller-summary,
  .market-stat-strip,
  .room-create-body,
  .room-settings-grid,
  .admin-form-grid,
  .admin-category-grid,
  .play-filter-grid,
  .notification-actions,
  .friends-roster,
  #home-friends-preview {
    grid-template-columns: 1fr;
  }

  .shop-wallet-grid,
  .market-wallet {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kitket-machine-head,
  .kitket-result {
    flex-direction: column;
    align-items: stretch;
  }

  .kitket-machine-grid {
    grid-template-columns: 1fr;
  }

  .topbar-actions,
  .friends-toolbar,
  .shop-head,
  .market-head,
  .market-detail-head,
  .market-register-card,
  .market-listing-card.compact,
  .market-offer-card,
  .friend-title-row,
  .achievement-title-row,
  .room-lobby-head,
  .room-invite-row,
  .admin-hero,
  .admin-section-title,
  .match-focus-head,
  .ability-dock-head {
    flex-direction: column;
    align-items: stretch;
  }

  .shop-mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .admin-player-list {
    grid-template-columns: 1fr;
    max-height: 420px;
  }

  .viewer-card {
    display: none;
  }

  body.mobile-ui .topbar-actions {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-column: auto;
    justify-self: stretch;
    align-items: center;
    gap: 10px;
    min-width: 0;
    width: 100%;
  }

  body.mobile-ui .brand-block {
    display: none;
  }

  body.mobile-ui .viewer-card {
    display: grid;
    min-width: 0;
    width: 100%;
    max-width: none;
    grid-template-columns: 54px minmax(0, 1fr);
    padding: 10px;
    gap: 10px;
  }

  body.mobile-ui .viewer-card h2 {
    font-size: 0.98rem;
  }

  .notification-panel,
  body.mobile-ui .notification-panel {
    position: fixed;
    top: calc(92px + env(safe-area-inset-top));
    left: 14px;
    right: 14px;
    width: auto;
    max-width: none;
    max-height: min(70vh, 520px);
    overflow: auto;
    z-index: 80;
  }

  .notification-card {
    min-width: 0;
  }

  .notification-card .friend-main {
    min-width: 0;
    align-items: flex-start;
  }

  .notification-card .friend-copy {
    min-width: 0;
  }

  .notification-card .mini-pill {
    justify-self: start;
  }

  .friend-card.search-result {
    flex-direction: column;
    align-items: stretch;
  }

  .friend-search-actions {
    width: 100%;
  }

  .shell-drawer {
    top: 12px;
    left: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .play-browser-stage {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
  }

  #play-view.match-live .play-filter-grid {
    display: none;
  }

  #play-view.match-live .game-browser-card {
    min-height: 0;
    padding: 14px;
    gap: 10px;
  }

  .browser-nav-button {
    min-width: 52px;
    font-size: 1.5rem;
  }

  .board-wrap {
    padding: 12px 12px 156px;
  }

  .board-stage {
    width: 100%;
  }

  body.mobile-ui .move-pad {
    width: 140px;
    height: 140px;
  }

  body.mobile-ui .move-button {
    width: 58px;
    min-width: 58px;
    min-height: 58px;
  }

  .ability-button {
    min-width: 0;
    min-height: 64px;
    padding: 8px 6px;
  }

  .ability-dock {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
  }

  .ability-title {
    font-size: 0.74rem;
  }

  .ability-meta {
    font-size: 0.64rem;
  }

  .mobile-dock-button {
    min-height: 44px;
    padding: 9px 5px;
    min-width: 0;
    text-align: center;
    font-size: 0.72rem;
  }

  body.mobile-ui .mobile-dock {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .market-catalog {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  #market-browse-panel:not(.market-detail-active) .market-detail {
    display: none;
  }

  #market-browse-panel.market-detail-active .market-filter-grid,
  #market-browse-panel.market-detail-active .market-catalog {
    display: none;
  }

  #market-browse-panel.market-detail-active .market-browser-grid {
    display: block;
  }

  .market-detail-back {
    display: inline-flex;
  }

  .market-detail-actions {
    display: grid;
    grid-template-columns: minmax(76px, 0.7fr) minmax(0, 1.3fr);
    justify-content: stretch;
  }

  .market-detail-actions > button {
    width: 100%;
  }

  .market-detail-actions .market-timeframe-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .market-timeframe-row button {
    width: 100%;
  }

  .market-detail-kpis,
  #market-browse-panel.market-detail-active .market-stat-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .market-filter-grid,
  .market-sell-grid {
    align-items: stretch;
  }

  .market-filter-grid button,
  .market-sell-grid button {
    width: 100%;
  }

  .market-item-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .market-item-card > .mini-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .market-buy-grid {
    grid-template-columns: 1fr;
  }

  .market-offer-actions {
    justify-content: stretch;
  }

  .market-offer-actions button {
    flex: 1 1 120px;
  }
}

@media (orientation: landscape) and (max-width: 1000px) {
  body.mobile-ui .board-wrap {
    padding: 12px 12px 132px;
  }

  body.mobile-ui .move-pad {
    width: 132px;
    height: 132px;
  }

  body.mobile-ui .move-button {
    width: 56px;
    min-width: 56px;
    min-height: 56px;
  }

  body[data-mobile-layout="landscape"] .match-focus {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-mobile-layout="landscape"] .ability-dock {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: hidden;
  }

  body[data-mobile-layout="landscape"] .ability-button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 960px) {
  .control-studio {
    inset: 12px;
  }

  .border-picker-modal {
    inset: 12px;
  }

  .friend-profile-modal {
    inset: 12px;
  }

  .stash-detail-modal {
    inset: 12px;
  }

  .control-studio-card {
    max-height: calc(100vh - 24px);
  }

  .friend-profile-card {
    max-height: calc(100vh - 24px);
  }

  .border-picker-card {
    max-height: calc(100vh - 24px);
  }

  .stash-detail-card {
    max-height: calc(100vh - 24px);
  }

  .control-studio-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .control-studio-card {
    width: 100%;
  }

  .control-studio-head,
  .control-studio-tabs,
  .control-studio-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .control-studio-head {
    padding-top: 18px;
    padding-bottom: 14px;
  }

  .control-studio-tabs {
    padding-bottom: 14px;
  }

  .control-studio-body {
    padding-bottom: 18px;
  }

  .layout-preview {
    width: min(100%, 268px);
  }

  .layout-preview.layout-preview-landscape {
    width: min(100%, 320px);
  }

  .layout-control.layout-move-button {
    width: clamp(40px, 15%, 52px);
    height: clamp(40px, 15%, 52px);
  }

  .desktop-keybind-grid {
    grid-template-columns: 1fr;
  }

  .friend-profile-head,
  .friend-profile-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .stash-detail-head,
  .stash-detail-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .border-picker-head,
  .border-picker-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .friend-profile-head {
    padding-top: 18px;
    padding-bottom: 14px;
  }

  .stash-detail-head {
    padding-top: 18px;
    padding-bottom: 14px;
  }

  .stash-detail-summary {
    grid-template-columns: 1fr;
  }

  .crafting-panel-head,
  .equipment-panel-head,
  .stash-equip-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .stash-panel-head-actions {
    justify-content: stretch;
  }

  .stash-panel-head-actions > * {
    flex: 1 1 auto;
  }

  .crafting-recipe-card {
    align-items: stretch;
    flex-direction: column;
  }

  .equipment-slot-grid {
    grid-template-columns: 1fr;
  }

  .character-maker-layout {
    grid-template-columns: 1fr;
  }

  .character-maker-form {
    position: static;
  }

  .character-maker-picker {
    grid-column: auto;
  }

  .character-maker-option-grid {
    grid-template-columns: 1fr;
  }

  .character-maker-submit-row button {
    width: 100%;
  }

  .equipment-item-row {
    grid-template-columns: 44px minmax(0, 1fr);
    display: grid;
  }

  .equipment-item-row .compact-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .equipment-slot-head {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
  }

  .equipment-picker-toggle {
    margin-left: 0;
  }

  .equipment-picker-head {
    align-items: stretch;
    flex-direction: column;
  }

  .equipment-picker-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .equipment-picker-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .equipment-picker-amount {
    grid-column: 1 / 2;
    min-width: 0;
  }

  .equipment-picker-amount input {
    width: 100%;
  }

  .equipment-picker-item .compact-action {
    grid-column: 2 / 3;
    width: auto;
  }

  .stash-equip-controls {
    justify-content: stretch;
  }

  .stash-equip-controls label,
  .stash-equip-controls input,
  .stash-equip-controls button {
    width: 100%;
  }

  .stash-detail-icon-wrap {
    min-height: 180px;
    border-radius: 20px;
  }

  .border-picker-head {
    padding-top: 18px;
    padding-bottom: 14px;
  }

  .friend-profile-summary {
    align-items: start;
  }

  .friend-profile-avatar {
    width: 76px;
    height: 76px;
    border-radius: 20px;
  }

  .friend-profile-grid {
    grid-template-columns: 1fr;
  }

  .global-chat-shell {
    min-height: 0;
    padding: 10px;
    grid-template-rows: auto auto auto auto;
  }

  .global-chat-messages {
    min-height: 105px;
    max-height: min(42vh, 320px);
  }

  .global-chat-message {
    grid-template-columns: 25px minmax(0, 1fr);
    padding: 4px 6px;
  }

  .chat-avatar-frame {
    width: 23px;
    height: 23px;
    --profile-border-size: calc(100% + 17px);
  }

  .global-chat-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .global-chat-form button {
    width: auto;
  }
}

@media (max-width: 1000px) {
  body.mobile-ui.live-match-view #play-view,
  body.mobile-ui.live-match-view .combat-layout,
  body.mobile-ui.live-match-view .combat-stage {
    min-height: 0 !important;
    height: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.mobile-ui.live-match-view .board-wrap {
    position: fixed;
    inset: 0;
    z-index: 18;
    width: 100vw;
    width: 100dvw;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: calc(8px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) calc(112px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left));
    gap: 0;
    place-items: start stretch;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden;
  }

  body.mobile-ui.live-match-view .board-stage {
    width: 100%;
    max-width: none;
    margin: 0;
    background: #010304 !important;
    border: 1px solid rgba(105, 212, 255, 0.48) !important;
    border-radius: 8px !important;
    box-shadow:
      0 0 0 1px rgba(8, 17, 22, 0.78),
      0 14px 34px rgba(0, 0, 0, 0.36) !important;
    z-index: 19;
  }

  body.mobile-ui.live-match-view[data-mobile-layout="portrait"] .board-stage {
    width: min(calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right) - 16px), calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 128px));
    max-width: calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right) - 16px);
    height: auto;
    aspect-ratio: var(--board-width) / var(--board-height);
    margin: 0 auto;
  }

  body.mobile-ui.live-match-view .board-image {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.mobile-ui.live-match-view .board {
    will-change: transform;
  }
}

@media (orientation: portrait) and (max-width: 1000px) {
  body.mobile-ui.live-match-view .board-stage {
    width: min(calc(100dvw - env(safe-area-inset-left) - env(safe-area-inset-right) - 16px), calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 128px));
    max-width: calc(100dvw - env(safe-area-inset-left) - env(safe-area-inset-right) - 16px);
    height: auto;
    aspect-ratio: var(--board-width) / var(--board-height);
    margin: 0 auto;
  }
}

@media (max-width: 1000px) {
  body.mobile-ui.live-match-view {
    min-height: calc(100dvh + 760px);
  }

  body.mobile-ui.live-match-view .app-shell {
    min-height: calc(100dvh + 760px);
    padding-bottom: calc(132px + env(safe-area-inset-bottom));
  }

  body.mobile-ui.live-match-view #play-view,
  body.mobile-ui.live-match-view .combat-layout,
  body.mobile-ui.live-match-view .combat-stage {
    min-height: calc(100dvh + 760px) !important;
    height: auto !important;
    position: relative;
  }

  body.mobile-ui.live-match-view .match-focus-panel {
    display: grid !important;
    position: absolute;
    z-index: 21;
    left: calc(8px + env(safe-area-inset-left));
    right: calc(8px + env(safe-area-inset-right));
    top: calc(100dvh + 12px);
    margin: 0;
    padding: 12px;
    gap: 10px;
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(8, 18, 23, 0.97), rgba(5, 13, 17, 0.95)),
      radial-gradient(circle at top right, rgba(105, 212, 255, 0.1), transparent 44%);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(12px);
  }

  body.mobile-ui.live-match-view .match-focus-head {
    align-items: start;
  }

  body.mobile-ui.live-match-view .match-focus {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.mobile-ui.live-match-view .focus-stat-grid {
    grid-template-columns: 1fr;
  }

  body.mobile-ui.live-match-view .health-hud {
    width: min(286px, calc(100vw - 24px));
  }

  body.mobile-ui.live-match-view .health-hud.collapsed {
    width: auto;
  }

  body.mobile-ui.live-match-view .mobile-stats-handle {
    display: grid;
    position: fixed;
    z-index: 44;
    left: 50%;
    bottom: calc(8px + env(safe-area-inset-bottom));
    width: 92px;
    height: 14px;
    padding: 0;
    transform: translateX(-50%);
    touch-action: none;
    cursor: ns-resize;
    border: 1px solid rgba(180, 232, 255, 0.62);
    border-radius: 999px;
    background: linear-gradient(90deg, #1d7dff, #69d4ff);
    box-shadow:
      0 0 0 5px rgba(3, 12, 18, 0.56),
      0 8px 22px rgba(0, 0, 0, 0.42),
      0 0 18px rgba(105, 212, 255, 0.34);
  }

  body.mobile-ui.live-match-view .mobile-stats-handle span {
    width: 52px;
    height: 3px;
    place-self: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
  }

  body.mobile-ui.live-match-view .topbar,
  body.mobile-ui.live-match-view .health-hud.collapsed,
  body.mobile-ui.live-match-view .move-button,
  body.mobile-ui.live-match-view .move-pad,
  body.mobile-ui.live-match-view .quick-action-button,
  body.mobile-ui.live-match-view .melee-slot-button,
  body.mobile-ui.live-match-view .ability-dock-panel,
  body.mobile-ui.live-match-view .match-inventory-hud,
  body.mobile-ui.live-match-view .status-rail,
  body.mobile-ui.live-match-view .status-popover {
    transition:
      opacity 130ms ease,
      visibility 130ms ease;
  }

  body.mobile-ui.live-match-view.mobile-stats-scroll-mode .topbar,
  body.mobile-ui.live-match-view.mobile-stats-scroll-mode .health-hud.collapsed,
  body.mobile-ui.live-match-view.mobile-stats-scroll-mode .move-button,
  body.mobile-ui.live-match-view.mobile-stats-scroll-mode .move-pad,
  body.mobile-ui.live-match-view.mobile-stats-scroll-mode .quick-action-button,
  body.mobile-ui.live-match-view.mobile-stats-scroll-mode .melee-slot-button,
  body.mobile-ui.live-match-view.mobile-stats-scroll-mode .ability-dock-panel,
  body.mobile-ui.live-match-view.mobile-stats-scroll-mode .match-inventory-hud,
  body.mobile-ui.live-match-view.mobile-stats-scroll-mode .status-rail,
  body.mobile-ui.live-match-view.mobile-stats-scroll-mode .status-popover {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.mobile-ui.live-match-view.mobile-stats-scroll-mode .mobile-look-cursor {
    opacity: 0 !important;
  }

}

@media (max-width: 1000px) {
  body.mobile-ui.live-match-view .ability-dock-panel {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding: 0;
    border-radius: 12px;
  }

  body.mobile-ui.live-match-view .ability-dock {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  body.mobile-ui.live-match-view .ability-button {
    min-height: 42px;
    padding: 5px 3px;
    border-radius: 7px;
  }

  body.mobile-ui.live-match-view[data-ability-bar-layout="stacked"] .ability-dock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: calc((42px * 3) + (4px * 2));
    overflow-y: auto;
    touch-action: pan-y;
  }

  body.mobile-ui.live-match-view .ability-title {
    font-size: 0.62rem;
    line-height: 1.05;
  }

  body.mobile-ui.live-match-view .ability-active-timer {
    padding: 1px 5px;
    font-size: 0.56rem;
  }

  body.mobile-ui.live-match-view .quick-action-button {
    width: 58px;
    min-width: 58px;
    height: 58px;
    min-height: 58px;
  }

  body.mobile-ui.live-match-view .quick-action-icon {
    width: 22px;
    height: 22px;
  }

  body.mobile-ui.live-match-view .quick-action-timer {
    right: 4px;
    bottom: 4px;
    min-width: 22px;
    max-width: 34px;
    font-size: 0.54rem;
  }

  body.mobile-ui.live-match-view .melee-slot-button {
    width: 60px;
    min-width: 60px;
    height: 60px;
    min-height: 60px;
    padding: 5px;
  }

  body.mobile-ui.live-match-view .melee-slot-button .melee-slot-index,
  body.mobile-ui.live-match-view .melee-slot-button .melee-slot-meta {
    font-size: 0.52rem;
  }

  body.mobile-ui.live-match-view .melee-slot-button .melee-slot-name {
    font-size: 0.58rem;
  }

  body.mobile-ui.live-match-view .move-pad {
    width: 124px;
    height: 124px;
  }

  body.mobile-ui.live-match-view .move-button {
    width: 54px;
    min-width: 54px;
    min-height: 54px;
  }
}

@media (max-width: 1000px) {
  .clan-war-shell {
    grid-template-columns: 1fr;
  }

  .clan-war-stage {
    min-height: 58dvh;
  }

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

@media (max-width: 700px) {
  .lookup-form,
  .lookup-layout {
    grid-template-columns: 1fr;
  }

  .clan-create-grid,
  .clan-card,
  .clan-viewer-panel {
    grid-template-columns: 1fr;
  }

  .clan-hub-head,
  .clan-card-title,
  .clan-chat-message div {
    align-items: stretch;
    flex-direction: column;
  }

  .clan-command-grid,
  .clan-command-top,
  .clan-menu-grid,
  .clan-treasury-grid,
  .clan-workshop-layout,
  .clan-workshop-panel.full .clan-workshop-layout,
  .clan-workshop-stats,
  .clan-workshop-save-row,
  .clan-workshop-blueprint-card,
  .clan-workshop-vehicle-card,
  .clan-member-card,
  .clan-role-card,
  .clan-settings-grid,
  .clan-permission-grid,
  .clan-transfer-row,
  .clan-activity-item,
  .clan-invite-card,
  .clan-sent-invite,
  .clan-deposit-row,
  .clan-chat-compose,
  .clan-invite-compose {
    grid-template-columns: minmax(0, 1fr);
  }

  .clan-invite-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .clan-badge {
    width: 100%;
    height: 52px;
  }

  .clan-workshop-category-row,
  .clan-workshop-source-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .clan-workshop-panel.full {
    min-height: auto;
  }

  .vehicle-workfloor {
    min-height: 420px;
    aspect-ratio: auto;
  }

  .vehicle-frame-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(9, minmax(56px, auto));
    grid-template-areas:
      "turret"
      "front_armor"
      "left_armor"
      "right_armor"
      "frame"
      "engine"
      "fuel_tank"
      "tracks"
      "rear_armor";
  }

  .lookup-form {
    align-items: stretch;
  }

  .lookup-inline-detail {
    display: grid;
  }

  .lookup-layout > .lookup-detail {
    display: none;
  }

  .lookup-result-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .lookup-result-image,
  .lookup-result-glyph {
    width: 38px;
    height: 38px;
  }

  .lookup-score {
    display: none;
  }

  .clan-war-shell {
    min-height: auto;
  }

  .clan-war-stage {
    min-height: 42dvh;
  }

  .clan-war-panel {
    padding: 14px;
    gap: 12px;
  }

  .clan-war-title h2 {
    font-size: 1.55rem;
  }

  .clan-location-marker {
    width: 30px;
    height: 30px;
  }
}

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

.clan-workshop-panel.full {
  min-height: min(82dvh, 960px);
}

.clan-workshop-layout,
.clan-workshop-panel.full .clan-workshop-layout {
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.clan-workshop-shelf {
  order: 1;
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)),
    rgba(5, 12, 15, 0.9);
}

.clan-workshop-floor {
  order: 2;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.clan-workshop-source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.clan-workshop-source-row select,
.clan-workshop-source-row span {
  min-width: 0;
  border-radius: 8px;
}

.clan-workshop-source-row span {
  display: block;
  padding: 8px 10px;
  color: var(--text);
  border: 1px solid rgba(255, 212, 118, 0.28);
  background: rgba(255, 212, 118, 0.08);
}

.clan-workshop-category-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.clan-workshop-category {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 9px;
  text-align: left;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
}

.clan-workshop-category .workshop-part-icon {
  width: 30px;
  height: 30px;
}

.clan-workshop-category.active {
  color: var(--text);
  border-color: rgba(255, 212, 118, 0.72);
  background: rgba(255, 212, 118, 0.12);
  box-shadow: inset 3px 0 0 rgba(255, 212, 118, 0.8);
}

.clan-workshop-part-group {
  min-width: 0;
}

.clan-workshop-part-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  max-height: min(64dvh, 680px);
  overflow: auto;
  padding-right: 3px;
}

.clan-workshop-part-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-areas:
    "icon copy"
    "icon target";
  gap: 5px 10px;
  align-items: center;
  min-height: 74px;
  padding: 10px 12px;
  color: var(--text);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
}

.clan-workshop-part-card:not(:disabled):hover,
.clan-workshop-part-card:not(:disabled):focus-visible {
  border-color: rgba(116, 222, 214, 0.58);
  background: rgba(116, 222, 214, 0.08);
}

.clan-workshop-part-card:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.clan-workshop-part-card .workshop-part-icon {
  grid-area: icon;
}

.part-card-count {
  position: absolute;
  top: 7px;
  right: 8px;
  min-width: 24px;
  padding: 2px 7px;
  color: var(--ink);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 900;
  border-radius: 999px;
  background: var(--gold);
}

.part-card-copy {
  grid-area: copy;
  display: grid;
  gap: 2px;
  min-width: 0;
}

.part-card-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.part-card-copy em,
.part-card-target {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.part-card-target {
  grid-area: target;
}

.workshop-part-icon {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(116, 222, 214, 0.32);
  border-radius: 8px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,0.18), transparent 34%),
    rgba(8, 20, 24, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.035);
}

.workshop-part-icon::before,
.workshop-part-icon::after,
.workshop-part-icon i,
.workshop-part-icon b {
  content: "";
  position: absolute;
  display: block;
}

.icon-frame::before {
  inset: 9px 7px;
  border: 2px solid rgba(255, 212, 118, 0.9);
  border-radius: 5px;
}

.icon-frame::after {
  inset: 15px 13px;
  background: rgba(116, 222, 214, 0.35);
  border-radius: 3px;
}

.icon-tracks::before,
.icon-tracks::after {
  top: 7px;
  bottom: 7px;
  width: 10px;
  border-radius: 5px;
  background: repeating-linear-gradient(0deg, rgba(238,249,248,0.72) 0 3px, rgba(116,222,214,0.2) 3px 6px);
}

.icon-tracks::before { left: 8px; }
.icon-tracks::after { right: 8px; }

.icon-engine::before {
  inset: 9px;
  border-radius: 5px;
  background: rgba(116, 222, 214, 0.34);
}

.icon-engine::after {
  left: 13px;
  right: 13px;
  top: 14px;
  height: 13px;
  background: repeating-linear-gradient(90deg, rgba(238,249,248,0.86) 0 2px, transparent 2px 5px);
}

.icon-fuel_tank::before,
.icon-fuel-tank::before,
.icon-fuel::before {
  inset: 9px 11px;
  border-radius: 999px;
  border: 2px solid rgba(116, 222, 214, 0.8);
  background: rgba(116, 222, 214, 0.16);
}

.icon-fuel_tank::after,
.icon-fuel-tank::after,
.icon-fuel::after {
  left: 16px;
  right: 16px;
  top: 10px;
  bottom: 10px;
  background: rgba(255, 212, 118, 0.55);
}

.icon-turret {
  border-radius: 50%;
}

.icon-turret::before {
  inset: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 212, 118, 0.9);
  background: rgba(116, 222, 214, 0.16);
}

.icon-turret::after {
  left: 50%;
  top: 4px;
  width: 5px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(238,249,248,0.86);
}

.icon-armor::before {
  inset: 9px 8px;
  transform: skewX(-12deg);
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(255, 212, 118, 0.7), rgba(116, 222, 214, 0.22));
}

.icon-armor::after {
  left: 13px;
  right: 13px;
  top: 12px;
  height: 18px;
  border-left: 1px solid rgba(5, 12, 15, 0.6);
  border-right: 1px solid rgba(5, 12, 15, 0.6);
}

.vehicle-workfloor {
  position: relative;
  display: block;
  min-height: min(68dvh, 720px);
  aspect-ratio: auto;
  overflow: hidden;
  border: 1px solid rgba(116, 222, 214, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 46%, rgba(116, 222, 214, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.01)),
    #051012;
}

.workshop-floor-grid {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(116,222,214,0.08) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(116,222,214,0.07) 0 1px, transparent 1px 44px);
  pointer-events: none;
}

.workshop-floor-mark {
  position: absolute;
  pointer-events: none;
  background: rgba(255, 212, 118, 0.18);
}

.vehicle-workfloor.no-frame .workshop-floor-mark {
  display: none;
}

.mark-horizontal {
  left: 11%;
  right: 11%;
  top: 50%;
  height: 1px;
}

.mark-vertical {
  top: 10%;
  bottom: 10%;
  left: 50%;
  width: 1px;
}

.vehicle-frame-shell {
  position: absolute;
  inset: 32px;
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.vehicle-frame-name,
.workshop-floor-slot {
  position: absolute;
  z-index: 2;
  min-width: 0;
  min-height: 0;
  border: 1px dashed rgba(116, 222, 214, 0.3);
  border-radius: 8px;
  background: rgba(5, 16, 19, 0.44);
  backdrop-filter: blur(2px);
}

.vehicle-frame-name.filled,
.workshop-floor-slot.filled {
  border-style: solid;
  border-color: rgba(116, 222, 214, 0.58);
  background: rgba(9, 30, 34, 0.82);
  box-shadow: 0 14px 36px rgba(0,0,0,0.28);
}

.vehicle-frame-name.empty,
.workshop-floor-slot.empty {
  opacity: 0.58;
}

.vehicle-frame-name {
  left: 34%;
  top: 36%;
  width: 32%;
  height: 25%;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 12px;
  text-align: center;
}

.vehicle-workfloor.no-frame .vehicle-frame-name {
  left: 31%;
  top: 34%;
  width: 38%;
  height: 30%;
  border-color: rgba(255, 212, 118, 0.52);
  background: rgba(255, 212, 118, 0.07);
}

.workshop-floor-link {
  position: absolute;
  z-index: 1;
  display: block;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 212, 118, 0.18), rgba(116, 222, 214, 0.62), rgba(255, 212, 118, 0.18));
  box-shadow: 0 0 12px rgba(116, 222, 214, 0.18);
}

.workshop-floor-link::before,
.workshop-floor-link::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 212, 118, 0.72);
  border-radius: 50%;
  background: rgba(5, 16, 19, 0.9);
}

.floor-link-turret {
  left: 50%;
  top: 23%;
  width: 2px;
  height: 13%;
}

.floor-link-front_armor {
  left: 50%;
  top: 34%;
  width: 2px;
  height: 2%;
}

.floor-link-left_armor {
  left: 27%;
  top: 49%;
  width: 7%;
  height: 2px;
}

.floor-link-right_armor {
  right: 27%;
  top: 49%;
  width: 7%;
  height: 2px;
}

.floor-link-rear_armor {
  left: 50%;
  top: 61%;
  width: 2px;
  height: 21%;
}

.floor-link-engine {
  left: 40%;
  top: 61%;
  width: 2px;
  height: 17%;
}

.floor-link-fuel_tank {
  left: 60%;
  top: 61%;
  width: 2px;
  height: 17%;
}

.floor-link-tracks {
  left: 50%;
  top: 61%;
  width: 2px;
  height: 30%;
}

.floor-link-turret::before,
.floor-link-front_armor::before,
.floor-link-rear_armor::before,
.floor-link-engine::before,
.floor-link-fuel_tank::before,
.floor-link-tracks::before {
  left: -3px;
  top: -3px;
}

.floor-link-turret::after,
.floor-link-front_armor::after,
.floor-link-rear_armor::after,
.floor-link-engine::after,
.floor-link-fuel_tank::after,
.floor-link-tracks::after {
  left: -3px;
  bottom: -3px;
}

.floor-link-left_armor::before,
.floor-link-right_armor::before {
  left: -3px;
  top: -3px;
}

.floor-link-left_armor::after,
.floor-link-right_armor::after {
  right: -3px;
  top: -3px;
}

.workshop-floor-slot-button {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  gap: 2px;
  padding: 6px;
  color: var(--text);
  text-align: center;
  border: 0;
  border-radius: inherit;
  background: transparent;
}

.vehicle-frame-name span,
.workshop-floor-slot span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.vehicle-frame-name strong,
.workshop-floor-slot strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.12;
  text-overflow: ellipsis;
}

.vehicle-frame-name em,
.workshop-floor-slot em {
  color: var(--gold);
  font-size: 0.7rem;
  font-style: normal;
}

.workshop-floor-slot .workshop-part-icon {
  width: 30px;
  height: 30px;
}

.workshop-floor-slot.filled .workshop-floor-slot-button > span:not(.workshop-part-icon):not(.sr-only),
.workshop-floor-slot.filled em {
  display: none;
}

.vehicle-frame-name .workshop-part-icon {
  width: 40px;
  height: 40px;
}

.floor-plus {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: var(--gold) !important;
  font-size: 1.1rem !important;
  border: 1px solid rgba(255, 212, 118, 0.36);
  border-radius: 50%;
}

.workshop-floor-slot.selected,
.vehicle-frame-name:focus-within {
  border-color: rgba(255, 212, 118, 0.86);
  box-shadow: 0 0 0 2px rgba(255, 212, 118, 0.13), 0 16px 42px rgba(0,0,0,0.34);
}

.workshop-floor-remove {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 24px;
  min-height: 24px;
  padding: 0;
  color: var(--danger);
  border: 1px solid rgba(255, 107, 87, 0.4);
  border-radius: 50%;
  background: rgba(255, 107, 87, 0.1);
}

.floor-slot-turret {
  left: 43%;
  top: 8%;
  width: 14%;
  height: 15%;
  border-radius: 50%;
}

.floor-slot-front_armor {
  left: 30%;
  top: 24%;
  width: 40%;
  height: 10%;
}

.floor-slot-left_armor {
  left: 14%;
  top: 34%;
  width: 13%;
  height: 31%;
}

.floor-slot-right_armor {
  right: 14%;
  top: 34%;
  width: 13%;
  height: 31%;
}

.floor-slot-rear_armor {
  left: 33%;
  bottom: 9%;
  width: 34%;
  height: 8%;
}

.floor-slot-engine {
  left: 31%;
  bottom: 22%;
  width: 17%;
  height: 12%;
}

.floor-slot-fuel_tank {
  right: 31%;
  bottom: 22%;
  width: 17%;
  height: 12%;
}

.floor-slot-tracks {
  left: 23%;
  bottom: 0;
  width: 52%;
  height: 9%;
}

.floor-slot-tracks .workshop-part-icon {
  width: 26px;
  height: 26px;
}

.floor-slot-tracks.filled .workshop-floor-slot-button::before,
.floor-slot-tracks.filled .workshop-floor-slot-button::after {
  content: "";
  position: absolute;
  top: 12%;
  bottom: 12%;
  width: 12%;
  border-radius: 999px;
  background: repeating-linear-gradient(0deg, rgba(238,249,248,0.62) 0 4px, rgba(116,222,214,0.16) 4px 8px);
}

.floor-slot-tracks.filled .workshop-floor-slot-button::before {
  left: 8%;
}

.floor-slot-tracks.filled .workshop-floor-slot-button::after {
  right: 8%;
}

.clan-workshop-stats {
  grid-template-columns: repeat(auto-fit, minmax(106px, 1fr));
}

@media (max-width: 980px) {
  .clan-workshop-layout,
  .clan-workshop-panel.full .clan-workshop-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .clan-workshop-shelf,
  .clan-workshop-floor {
    order: initial;
  }

  .clan-workshop-category-row,
  .clan-workshop-part-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .clan-workshop-category-row,
  .clan-workshop-part-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .vehicle-workfloor {
    min-height: 540px;
  }

  .vehicle-frame-shell {
    inset: 20px;
    grid-template-columns: none;
    grid-template-rows: none;
    grid-template-areas: none;
  }

  .vehicle-frame-name {
    left: 27%;
    top: 38%;
    width: 46%;
    height: 22%;
  }

  .floor-slot-left_armor {
    left: 5%;
    width: 17%;
  }

  .floor-slot-right_armor {
    right: 5%;
    width: 17%;
  }

  .floor-slot-tracks {
    left: 15%;
    width: 70%;
  }

  .floor-slot-engine {
    left: 25%;
    width: 23%;
  }

  .floor-slot-fuel_tank {
    right: 25%;
    width: 23%;
  }

  .vehicle-workfloor.no-frame .vehicle-frame-name {
    left: 22%;
    top: 34%;
    width: 56%;
    height: 30%;
  }

  .floor-link-turret {
    top: 23%;
    height: 15%;
  }

  .floor-link-front_armor {
    top: 34%;
    height: 4%;
  }

  .floor-link-left_armor {
    left: 22%;
    width: 5%;
  }

  .floor-link-right_armor {
    right: 22%;
    width: 5%;
  }

  .floor-link-rear_armor {
    top: 60%;
    height: 23%;
  }

  .floor-link-engine {
    left: 36.5%;
    top: 60%;
    height: 6%;
  }

  .floor-link-fuel_tank {
    left: 63.5%;
    top: 60%;
    height: 6%;
  }

  .floor-link-tracks {
    top: 60%;
    height: 31%;
  }
}

.clan-workshop-layout,
.clan-workshop-panel.full .clan-workshop-layout {
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
}

.clan-workshop-panel.full .vehicle-workfloor {
  min-height: min(70dvh, 760px);
}

.clan-workshop-shelf {
  gap: 12px;
}

.clan-workshop-category-row {
  display: none;
}

.clan-workshop-slot-guide {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(116, 222, 214, 0.2);
  border-radius: 8px;
  background: rgba(116, 222, 214, 0.055);
}

.clan-workshop-slot-guide strong {
  color: var(--text);
  font-size: 0.92rem;
}

.clan-workshop-slot-guide span {
  color: var(--muted);
  font-size: 0.78rem;
}

.clan-workshop-part-list {
  max-height: min(58dvh, 560px);
}

.vehicle-workfloor {
  min-height: min(70dvh, 760px);
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(116, 222, 214, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.008)),
    #051012;
}

.workshop-floor-grid {
  opacity: 0.46;
}

.vehicle-frame-shell {
  left: 50%;
  top: 50%;
  width: min(82%, 560px);
  height: calc(100% - 42px);
  max-height: 720px;
  transform: translate(-50%, -50%);
}

.vehicle-frame-shell::before,
.vehicle-frame-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.vehicle-frame-shell::before {
  z-index: 1;
  left: 25%;
  top: 3%;
  width: 50%;
  height: 94%;
  clip-path: polygon(21% 0, 79% 0, 95% 18%, 90% 94%, 10% 94%, 5% 18%);
  border: 2px solid rgba(255, 212, 118, 0.34);
  background:
    linear-gradient(180deg, rgba(196, 214, 170, 0.84), rgba(103, 123, 88, 0.78)),
    rgba(116, 222, 214, 0.08);
  box-shadow:
    inset 0 0 0 2px rgba(5, 16, 19, 0.24),
    0 18px 48px rgba(0,0,0,0.34);
}

.vehicle-workfloor.no-frame .vehicle-frame-shell::before {
  opacity: 0.22;
  filter: saturate(0.7);
}

.vehicle-frame-shell::after {
  z-index: 0;
  left: 5%;
  top: 3%;
  width: 90%;
  height: 94%;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(33, 44, 48, 0.95) 0 11%, transparent 11% 89%, rgba(33, 44, 48, 0.95) 89% 100%),
    repeating-linear-gradient(0deg, rgba(230, 239, 241, 0.42) 0 7px, rgba(93, 111, 116, 0.26) 7px 16px);
  opacity: 0.64;
}

.vehicle-frame-shell:has(.floor-slot-tracks.filled)::after {
  opacity: 0.94;
  background:
    linear-gradient(90deg, rgba(44, 58, 64, 0.98) 0 11%, transparent 11% 89%, rgba(44, 58, 64, 0.98) 89% 100%),
    repeating-linear-gradient(0deg, rgba(238, 249, 248, 0.64) 0 7px, rgba(116, 222, 214, 0.22) 7px 16px);
}

.vehicle-frame-name,
.workshop-floor-slot {
  z-index: 3;
  border-radius: 8px;
  background: rgba(5, 16, 19, 0.52);
}

.vehicle-frame-name {
  left: 36%;
  top: 41%;
  width: 28%;
  height: 15%;
  border-style: solid;
  background: rgba(42, 58, 40, 0.74);
}

.vehicle-frame-name.filled {
  border-color: rgba(255, 212, 118, 0.58);
  background: rgba(54, 73, 48, 0.9);
}

.vehicle-workfloor.no-frame .vehicle-frame-name {
  left: 34%;
  top: 39%;
  width: 32%;
  height: 18%;
}

.vehicle-frame-name strong,
.workshop-floor-slot strong {
  font-size: 0.78rem;
}

.workshop-frame-remove {
  z-index: 6;
}

.floor-slot-turret {
  left: 42%;
  top: 3%;
  width: 16%;
  height: 10%;
}

.floor-slot-front_armor {
  left: 32%;
  top: 19%;
  width: 36%;
  height: 10%;
}

.floor-slot-left_armor {
  left: 25%;
  top: 34%;
  width: 12%;
  height: 28%;
}

.floor-slot-right_armor {
  right: 25%;
  top: 34%;
  width: 12%;
  height: 28%;
}

.floor-slot-engine {
  left: 35%;
  bottom: 24%;
  width: 13%;
  height: 11%;
}

.floor-slot-fuel_tank {
  right: 35%;
  bottom: 24%;
  width: 13%;
  height: 11%;
}

.floor-slot-rear_armor {
  left: 34%;
  bottom: 10%;
  width: 32%;
  height: 9%;
}

.floor-slot-tracks {
  left: 40%;
  bottom: 0;
  width: 20%;
  height: 8%;
  z-index: 4;
}

.floor-link-turret,
.floor-link-front_armor,
.floor-link-left_armor,
.floor-link-right_armor,
.floor-link-rear_armor,
.floor-link-engine,
.floor-link-fuel_tank,
.floor-link-tracks {
  opacity: 0.38;
}

.floor-link-left_armor {
  left: 37%;
  top: 48%;
  width: 5%;
}

.floor-link-right_armor {
  right: 37%;
  top: 48%;
  width: 5%;
}

.floor-link-tracks {
  top: auto;
  bottom: 8%;
  height: 31%;
}

@media (max-width: 980px) {
  .clan-workshop-layout,
  .clan-workshop-panel.full .clan-workshop-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .clan-workshop-shelf {
    order: 2;
  }

  .clan-workshop-floor {
    order: 1;
  }
}

@media (max-width: 700px) {
  .vehicle-workfloor,
  .clan-workshop-panel.full .vehicle-workfloor {
    min-height: 590px;
  }

  .vehicle-frame-shell {
    width: min(96%, 420px);
    height: calc(100% - 26px);
  }

  .vehicle-frame-shell::before {
    left: 22%;
    width: 56%;
  }

  .vehicle-frame-shell::after {
    left: 1%;
    width: 98%;
  }

  .vehicle-frame-name,
  .vehicle-workfloor.no-frame .vehicle-frame-name {
    left: 32%;
    width: 36%;
  }

  .floor-slot-left_armor {
    left: 20%;
    width: 14%;
  }

  .floor-slot-right_armor {
    right: 20%;
    width: 14%;
  }

  .floor-slot-engine {
    left: 31%;
    width: 17%;
  }

  .floor-slot-fuel_tank {
    right: 31%;
    width: 17%;
  }
}

.vehicle-workfloor {
  min-height: min(68dvh, 700px);
  background:
    radial-gradient(ellipse at 50% 50%, rgba(116, 222, 214, 0.09), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.006)),
    #051012;
}

.vehicle-frame-shell {
  width: min(88%, 760px);
  height: calc(100% - 48px);
  max-height: 640px;
}

.vehicle-frame-shell::before {
  left: 41%;
  top: 31%;
  width: 18%;
  height: 38%;
  clip-path: polygon(22% 0, 78% 0, 95% 22%, 86% 100%, 14% 100%, 5% 22%);
  border-color: rgba(255, 212, 118, 0.45);
  background:
    linear-gradient(180deg, rgba(188, 209, 164, 0.9), rgba(98, 119, 83, 0.88)),
    rgba(116, 222, 214, 0.08);
}

.vehicle-frame-shell::after {
  left: 37%;
  top: 29%;
  width: 26%;
  height: 42%;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(33, 44, 48, 0.92) 0 18%, transparent 18% 82%, rgba(33, 44, 48, 0.92) 82% 100%),
    repeating-linear-gradient(0deg, rgba(230, 239, 241, 0.42) 0 6px, rgba(93, 111, 116, 0.24) 6px 14px);
}

.vehicle-frame-shell:has(.floor-slot-tracks.filled)::after {
  background:
    linear-gradient(90deg, rgba(44, 58, 64, 0.98) 0 18%, transparent 18% 82%, rgba(44, 58, 64, 0.98) 82% 100%),
    repeating-linear-gradient(0deg, rgba(238, 249, 248, 0.64) 0 6px, rgba(116, 222, 214, 0.22) 6px 14px);
}

.vehicle-frame-name {
  left: 43%;
  top: 45%;
  width: 14%;
  height: 10%;
  padding: 5px;
  z-index: 5;
}

.vehicle-workfloor.no-frame .vehicle-frame-name {
  left: 39%;
  top: 42%;
  width: 22%;
  height: 16%;
}

.vehicle-frame-name .workshop-part-icon {
  width: 26px;
  height: 26px;
}

.vehicle-frame-name span,
.vehicle-frame-name em {
  display: none;
}

.vehicle-frame-name strong {
  font-size: 0.72rem;
}

.workshop-frame-remove {
  right: -8px;
  top: -8px;
}

.workshop-floor-slot {
  background: rgba(5, 16, 19, 0.72);
  box-shadow: 0 10px 28px rgba(0,0,0,0.24);
}

.workshop-floor-slot.filled {
  background: rgba(9, 30, 34, 0.9);
}

.floor-slot-turret {
  left: 44%;
  top: 6%;
  width: 12%;
  height: 11%;
}

.floor-slot-front_armor {
  left: 38%;
  top: 20%;
  width: 24%;
  height: 10%;
}

.floor-slot-left_armor {
  left: 9%;
  top: 41%;
  width: 16%;
  height: 18%;
}

.floor-slot-right_armor {
  right: 9%;
  top: 41%;
  width: 16%;
  height: 18%;
}

.floor-slot-engine {
  left: 30%;
  bottom: 13%;
  width: 16%;
  height: 12%;
}

.floor-slot-fuel_tank {
  right: 30%;
  bottom: 13%;
  width: 16%;
  height: 12%;
}

.floor-slot-rear_armor {
  left: 38%;
  bottom: 1%;
  width: 24%;
  height: 9%;
}

.floor-slot-tracks {
  left: 43%;
  bottom: 27%;
  width: 14%;
  height: 10%;
}

.workshop-floor-link {
  z-index: 2;
  opacity: 0.78;
}

.floor-link-turret {
  left: 50%;
  top: 17%;
  width: 2px;
  height: 14%;
}

.floor-link-front_armor {
  left: 50%;
  top: 30%;
  width: 2px;
  height: 8%;
}

.floor-link-left_armor {
  left: 25%;
  top: 50%;
  width: 18%;
  height: 2px;
}

.floor-link-right_armor {
  right: 25%;
  top: 50%;
  width: 18%;
  height: 2px;
}

.floor-link-engine {
  left: 43%;
  top: auto;
  bottom: 25%;
  width: 2px;
  height: 12%;
}

.floor-link-fuel_tank {
  left: 57%;
  top: auto;
  bottom: 25%;
  width: 2px;
  height: 12%;
}

.floor-link-rear_armor {
  left: 50%;
  top: auto;
  bottom: 10%;
  width: 2px;
  height: 20%;
}

.floor-link-tracks {
  left: 50%;
  top: 55%;
  bottom: auto;
  width: 2px;
  height: 8%;
}

@media (max-width: 700px) {
  .vehicle-frame-shell {
    width: min(96%, 480px);
  }

  .vehicle-frame-shell::before {
    left: 38%;
    width: 24%;
  }

  .vehicle-frame-shell::after {
    left: 32%;
    width: 36%;
  }

  .vehicle-frame-name {
    left: 40%;
    width: 20%;
  }

  .floor-slot-left_armor {
    left: 4%;
    width: 19%;
  }

  .floor-slot-right_armor {
    right: 4%;
    width: 19%;
  }

  .floor-link-left_armor {
    left: 23%;
    width: 17%;
  }

.floor-link-right_armor {
    right: 23%;
    width: 17%;
  }
}

.vehicle-frame-name .frame-callout {
  right: calc(100% + 34px);
  top: -44px;
  bottom: auto;
  left: auto;
  transform: none;
}

.vehicle-frame-name .frame-callout::before {
  left: 100%;
  top: calc(50% + 24px);
  width: 34px;
  height: 1px;
}

.floor-slot-turret .workshop-floor-callout {
  bottom: calc(100% + 42px);
}

.floor-slot-turret .workshop-floor-callout::before {
  height: 42px;
}

.floor-slot-front_armor .workshop-floor-callout {
  left: calc(100% + 28px);
  right: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

.floor-slot-front_armor .workshop-floor-callout::before {
  right: 100%;
  left: auto;
  top: 50%;
  width: 28px;
  height: 1px;
}

.floor-slot-rear_armor .workshop-floor-callout {
  right: calc(100% + 26px);
  left: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

.floor-slot-rear_armor .workshop-floor-callout::before {
  left: 100%;
  top: 50%;
  bottom: auto;
  width: 26px;
  height: 1px;
}

.floor-slot-tracks .workshop-floor-callout {
  left: calc(100% + 26px);
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

.floor-slot-tracks .workshop-floor-callout::before {
  right: 100%;
  left: auto;
  top: 50%;
  bottom: auto;
  width: 26px;
  height: 1px;
}

.workshop-floor-slot.selected .workshop-floor-callout {
  z-index: 11;
  border-color: rgba(255, 212, 118, 0.56);
}

.workshop-floor-slot.empty:not(.selected) .workshop-floor-callout {
  display: none !important;
}

.vehicle-frame-name .frame-callout {
  right: calc(100% + 92px);
}

.vehicle-frame-name .frame-callout::before {
  width: 92px;
}

.vehicle-frame-name,
.workshop-floor-slot {
  width: 22px;
  height: 22px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  transform: translate(-50%, -50%);
}

.vehicle-frame-name.filled,
.workshop-floor-slot.filled,
.vehicle-frame-name.empty,
.workshop-floor-slot.empty {
  background: transparent;
  box-shadow: none;
  opacity: 1;
}

.vehicle-frame-name {
  left: 50%;
  top: 50%;
}

.vehicle-workfloor.no-frame .vehicle-frame-name {
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
}

.floor-slot-turret { left: 50%; top: 33%; }
.floor-slot-front_armor { left: 50%; top: 40%; }
.floor-slot-left_armor { left: 43%; top: 50%; }
.floor-slot-right_armor { left: 57%; top: 50%; right: auto; }
.floor-slot-engine { left: 46%; top: 60%; bottom: auto; }
.floor-slot-fuel_tank { left: 54%; top: 60%; right: auto; bottom: auto; }
.floor-slot-rear_armor { left: 50%; top: 68%; bottom: auto; }
.floor-slot-tracks { left: 50%; top: 73%; bottom: auto; }

.vehicle-frame-name > span,
.vehicle-frame-name em,
.workshop-floor-slot.filled .workshop-floor-slot-button > span:not(.workshop-part-icon):not(.sr-only),
.workshop-floor-slot.filled em {
  display: revert !important;
}

.vehicle-frame-name .workshop-part-icon,
.workshop-floor-slot .workshop-part-icon {
  width: 30px;
  height: 30px;
}

.vehicle-frame-name .floor-mount-dot,
.workshop-floor-slot .floor-mount-dot {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  display: grid !important;
  width: 18px;
  height: 18px;
  place-items: center;
  transform: translate(-50%, -50%);
  color: var(--gold);
  border: 1px solid rgba(255, 212, 118, 0.64);
  border-radius: 50%;
  background: rgba(5, 16, 19, 0.82);
  box-shadow: 0 0 0 3px rgba(255, 212, 118, 0.08), 0 6px 14px rgba(0,0,0,0.32);
}

.vehicle-frame-name.filled .floor-mount-dot,
.workshop-floor-slot.filled .floor-mount-dot {
  border-color: rgba(116, 222, 214, 0.86);
  background: rgba(9, 30, 34, 0.9);
  box-shadow: 0 0 0 3px rgba(116, 222, 214, 0.12), 0 8px 18px rgba(0,0,0,0.36);
}

.floor-mount-dot i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(116, 222, 214, 0.95);
}

.floor-mount-dot b {
  color: var(--gold);
  font-size: 0.82rem;
  line-height: 1;
}

.vehicle-frame-name .workshop-floor-callout,
.workshop-floor-slot .workshop-floor-callout {
  position: absolute;
  z-index: 8;
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 132px;
  max-width: 170px;
  padding: 7px 9px;
  color: var(--text);
  text-align: left;
  border: 1px solid rgba(116, 222, 214, 0.24);
  border-radius: 8px;
  background: rgba(5, 16, 19, 0.88);
  box-shadow: 0 12px 28px rgba(0,0,0,0.32);
  backdrop-filter: blur(3px);
}

.vehicle-frame-name .workshop-floor-callout::before,
.workshop-floor-slot .workshop-floor-callout::before {
  content: "";
  position: absolute;
  background: rgba(116, 222, 214, 0.48);
}

.floor-callout-copy,
.floor-callout-copy span,
.floor-callout-copy strong,
.floor-callout-copy em {
  display: block !important;
  min-width: 0;
  word-break: normal;
}

.floor-callout-copy span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floor-callout-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.76rem;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floor-callout-copy em {
  color: var(--gold);
  font-size: 0.68rem;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floor-callout-plus {
  display: grid !important;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(255, 212, 118, 0.3);
  border-radius: 50%;
}

.frame-callout,
.floor-slot-turret .workshop-floor-callout,
.floor-slot-front_armor .workshop-floor-callout {
  left: 50%;
  bottom: calc(100% + 18px);
  transform: translateX(-50%);
}

.frame-callout::before,
.floor-slot-turret .workshop-floor-callout::before,
.floor-slot-front_armor .workshop-floor-callout::before {
  left: 50%;
  top: 100%;
  width: 1px;
  height: 18px;
}

.floor-slot-left_armor .workshop-floor-callout,
.floor-slot-engine .workshop-floor-callout {
  right: calc(100% + 22px);
  top: 50%;
  transform: translateY(-50%);
}

.floor-slot-left_armor .workshop-floor-callout::before,
.floor-slot-engine .workshop-floor-callout::before {
  left: 100%;
  top: 50%;
  width: 22px;
  height: 1px;
}

.floor-slot-right_armor .workshop-floor-callout,
.floor-slot-fuel_tank .workshop-floor-callout {
  left: calc(100% + 22px);
  top: 50%;
  transform: translateY(-50%);
}

.floor-slot-right_armor .workshop-floor-callout::before,
.floor-slot-fuel_tank .workshop-floor-callout::before {
  right: 100%;
  top: 50%;
  width: 22px;
  height: 1px;
}

.floor-slot-rear_armor .workshop-floor-callout,
.floor-slot-tracks .workshop-floor-callout {
  left: 50%;
  top: calc(100% + 18px);
  transform: translateX(-50%);
}

.floor-slot-rear_armor .workshop-floor-callout::before,
.floor-slot-tracks .workshop-floor-callout::before {
  left: 50%;
  bottom: 100%;
  width: 1px;
  height: 18px;
}

.workshop-floor-slot.selected .floor-mount-dot,
.vehicle-frame-name:focus-within .floor-mount-dot {
  border-color: rgba(255, 212, 118, 0.92);
  box-shadow: 0 0 0 4px rgba(255, 212, 118, 0.16), 0 8px 20px rgba(0,0,0,0.38);
}

.vehicle-frame-name .workshop-floor-callout {
  min-width: 160px;
  max-width: 190px;
}

.vehicle-frame-name .workshop-floor-callout .workshop-part-icon,
.workshop-floor-slot .workshop-floor-callout .workshop-part-icon {
  display: inline-block !important;
}

.workshop-floor-remove {
  z-index: 10;
  right: -10px;
  top: -10px;
}

@media (max-width: 700px) {
  .vehicle-frame-name .workshop-floor-callout,
  .workshop-floor-slot .workshop-floor-callout {
    min-width: 108px;
    max-width: 124px;
    grid-template-columns: 24px minmax(0, 1fr);
    padding: 6px;
  }

  .vehicle-frame-name .workshop-part-icon,
  .workshop-floor-slot .workshop-part-icon,
  .floor-callout-plus {
    width: 24px;
    height: 24px;
  }

  .floor-callout-copy strong {
    font-size: 0.7rem;
  }

  .floor-callout-copy span,
  .floor-callout-copy em {
    font-size: 0.62rem;
  }
}
