




































svg.stat-icon,
svg.hexa-icon {
  vertical-align: -0.15em;
  flex-shrink: 0;
}
svg.stat-ic--text,
svg.cur-ic--text {
  width: 1em;
  height: 1em;
}

svg.cta-clock {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

svg.enemy-card-icon {
  vertical-align: -0.15em;
  flex-shrink: 0;
  overflow: visible;
}
svg.enemy-card-icon--text {
  width: 1em;
  height: 1em;
}

svg.cs-sym {
  vertical-align: -0.15em;
  flex-shrink: 0;
}
svg.cs-sym--text {
  width: 1em;
  height: 1em;
}

svg.warn-icon {
  vertical-align: -0.15em;
  flex-shrink: 0;
}
.warn-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


















svg.hexa-icon { color: var(--cur-hexa); }







svg.draw-icon {
  vertical-align: -0.15em;
  flex-shrink: 0;
  color: var(--cur-draw);
}


.ct-setup-fragment-error {
  padding: 2em 1em;
  color: var(--muted);
  font-size: 0.9em;
  text-align: center;
}







.ge-canvas-wrap { position: relative; width: 100%; height: 120px; }

.ge-ymax {
  position: absolute; top: 1px; left: 2px;
  font-size: 11px; font-variant-numeric: tabular-nums;
  pointer-events: none; z-index: 1;
}
.ge-legend:empty { margin-top: 0; padding: 0; }

.ge-legend-chip.own { border-color: var(--cyan); }
.ge-legend-num { color: var(--muted); font-variant-numeric: tabular-nums; }










.el-empty { color: var(--muted); font-size: 11.5px; }
.enemy-intro {
  width: 100%; box-sizing: border-box;
  color: var(--text); font-size: 13px;



  opacity: 0;
  transition: opacity .32s ease;
}
.enemy-intro.show { opacity: 1; }


.tt-scene { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.tt-scene canvas { display: block; width: 100%; height: 100%; }
.enemy-intro .ei-scene { height: 100px; margin-bottom: 9px; }
.enemy-intro .ei-head { display: flex; align-items: center; gap: 9px; }


.enemy-intro .ei-glyph {
  width: 28px; height: 28px; flex: 0 0 28px;
  display: flex; align-items: center; justify-content: center;
}
.enemy-intro .ei-glyph svg { width: 100%; height: 100%; display: block; }
.enemy-intro .ei-newtag {
  font-size: 11px; letter-spacing: 1.5px; font-weight: 700;
  color: var(--ei, var(--red)); text-transform: uppercase;
}
.enemy-intro .ei-name { font-size: 17px; font-weight: 700; line-height: 1.1; }
.enemy-intro .ei-stats { display: grid; grid-template-columns: auto 1fr auto; gap: 5px 10px; align-items: center; margin-top: 9px; }
.enemy-intro .ei-label { font-size: 11.5px; color: var(--muted); }
.enemy-intro .ei-bar { display: flex; gap: 3px; }
.enemy-intro .ei-seg { width: 100%; height: 7px; border-radius: 2px; background: #2a3550; }
.enemy-intro .ei-seg.on { background: var(--ei, var(--red)); box-shadow: 0 0 5px -1px var(--ei, var(--red)); }
.enemy-intro .ei-val { font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; min-width: 62px; }
.enemy-intro .ei-val.ei-val-dim { color: var(--muted); font-weight: 400; }








.enemy-intro .ei-explain { font-size: 11.5px; line-height: 1.4; border-top: 1px dashed var(--cyan); padding-top: 8px; margin-top: 8px; color: var(--text-dim); }
.enemy-intro .ei-explain b { color: var(--cyan); }













.pact-banner-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 1.5px; font-weight: 700; text-transform: uppercase;
  color: var(--red); white-space: nowrap;
}
.pact-warn-icon {
  width: 24px; height: 24px; flex: 0 0 24px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  background: var(--red-a12); border: 1px solid var(--red-a42); color: var(--red);
}
.pact-rw-shared {
  display: inline-flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums;
}
.pact-rw-glyph { color: var(--magenta); font-size: 14px; }
.pact-rw-val   { color: var(--magenta); font-weight: 700; font-size: 14px; }
.pact-rw-lbl   { color: var(--muted); font-size: 11px; }

.pact-pills {
  display: flex; flex-wrap: wrap; gap: 5px 6px; margin-top: 9px;
  padding-top: 9px; border-top: 1px dashed rgba(255,255,255,.08);
}
.pact-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--red-a08); border: 1px solid var(--red-a42);
  border-radius: 999px; padding: 3px 9px; font-variant-numeric: tabular-nums;
}
.pact-pill-glyph { color: var(--red); font-size: 11px; opacity: .85; }
.pact-pill-type  { color: var(--text); font-size: 13px; line-height: 1; }
.pact-pill-type svg.enemy-card-icon,
.pact-pill-type svg.cs-sym { display: block; }
.pact-pill-val   { color: var(--red); font-weight: 700; font-size: 12px; }
















#ob-hook, #ob-c1, #ob-c2, #ob-c3, #ob-rearm, #ob-tpl, #ob-mates, #ob-unlock {
  background: rgba(13,19,34,.97);
  border: 1px solid var(--cyan);
  border-radius: 12px;
  padding: 16px 18px 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.6), 0 0 24px rgba(56,225,255,.12);
  animation: ob-pop .22s ease-out;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
}


@keyframes ob-pop {
  from { opacity: 0; translate: 0 6px; scale: .98; }
  to   { opacity: 1; translate: 0 0; scale: 1; }
}



.ob-x {
  position: absolute; top: 7px; right: 9px; width: 28px; height: 28px;
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--muted); font-size: 15px; line-height: 1;
  background: transparent; border: none;
}
.ob-x:hover { color: var(--text); background: rgba(255,255,255,.06); }
.ob-kicker {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 4px;
}
#ob-hook h2 { margin: 0 0 8px; font-size: 16px; color: var(--text); }
#ob-hook p, #ob-c1 p, #ob-c2 p, #ob-c3 p, #ob-rearm p, #ob-tpl p, #ob-mates p, #ob-unlock p {
  margin: 0 0 10px; font-size: 12.5px; line-height: 1.5; color: var(--text-dim);
}











.ob-cta {
  font: inherit; cursor: pointer; border-radius: 8px; padding: 7px 14px;
  font-weight: 600; font-size: 12.5px; background: var(--cyan); border: none; color: #07091a;
  white-space: nowrap;
}




.ob-cta:hover:not(:disabled) { box-shadow: 0 0 16px rgba(56,225,255,.4); color: #07091a; }
.ob-skip, .ob-back {
  font: inherit; cursor: pointer; background: none; border: none; color: var(--muted); font-size: 12px;
  white-space: nowrap;
}
.ob-skip:hover, .ob-back:hover { color: var(--text); }




.ob-cta-later {
  font: inherit; cursor: pointer; background: none; border: none; color: var(--muted); font-size: 12px;
  white-space: nowrap;
}
.ob-cta-later:hover { color: var(--text); }


.ob-spotlight {
  position: relative;
  z-index: 121;
  border-radius: 9px;
  animation: ob-pulse 1.6s ease-in-out infinite;
}
@keyframes ob-pulse {
  0%,100% { box-shadow: 0 0 0 2px rgba(56,225,255,0.55), 0 0 14px rgba(56,225,255,0.30); }
  50%      { box-shadow: 0 0 0 2px rgba(56,225,255,0.95), 0 0 22px rgba(56,225,255,0.55); }
}





.ob-nav { display: flex; flex-wrap: wrap; gap: 10px; row-gap: 6px; align-items: center; margin-top: 2px; }
.ob-nav .ob-cta { flex: 1 0 auto; }
.ob-nav .ob-back, .ob-nav .ob-skip { flex: 0 0 auto; }
.ob-nav .ob-skip { margin-left: auto; text-decoration: underline; }
.ob-step {
  position: absolute; right: 34px; top: 14px; font-size: 11px; color: var(--muted);
}



.b-magenta { color: var(--magenta); }
.b-yellow  { color: var(--yellow); }
.b-cyan    { color: var(--cyan); }
.b-green   { color: var(--green); }





.ob-pts { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ob-pts li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; font-size: 13.5px; color: var(--text-dim); }
.ob-mini { display: flex; align-items: center; justify-content: center; gap: 3px; }






.ob-mt { color: var(--cyan); flex: 0 0 auto; }
.ob-mt.dimmed { opacity: .55; }
.ob-me { flex: 0 0 auto; filter: drop-shadow(0 0 3px currentColor); }




.ob-ex { border: 1px solid var(--border, #1c2742); border-radius: 8px; padding: 6px; margin: 0 0 12px; background: rgba(255,255,255,.02); }




.ob-ex-cap { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 4px; padding: 0 2px; }















.ip-strow {
  display: grid; grid-template-columns: 18px auto auto 1fr 1px 30px; align-items: center; gap: 7px;
  border-radius: 7px; border: 1px solid transparent;
  transition: background .1s, border-color .1s, opacity .1s;
  min-height: 34px;
}

.ip-strow .ip-icon {
  color: var(--muted); font-size: 14px; line-height: 1;
  justify-self: center; text-align: center; transition: color .1s; padding-left: 7px;
}
.ip-icon .credit-icon { width: 15px; height: 15px; vertical-align: -3px; }








.ip-strow .ip-label {
  color: var(--text);
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.ip-strow .ip-lvl {
  color: var(--muted); font-size: 11px; white-space: nowrap;
  letter-spacing: .02em; font-variant-numeric: tabular-nums;
}
.ip-strow .ip-lvl .lq { opacity: .62; }
.ip-strow .ip-lvl .mq { color: var(--text-dim); }
.ip-strow .ip-val { color: var(--text); text-align: right; white-space: nowrap; }


.ip-front { display: contents; cursor: pointer; }


.ip-div { width: 1px; height: 18px; background: var(--border); justify-self: center; }


.ip-cbz {
  justify-self: stretch; align-self: stretch; display: flex;
  align-items: center; justify-content: center;
  cursor: pointer; border-radius: 0 7px 7px 0; transition: background .1s;
}
.ip-cbz:hover { background: rgba(56,225,255,.10); }


.ip-cb {
  width: 16px; height: 16px; border-radius: 4px; border: 2px solid #3a4a6e;
  position: relative; transition: background .12s, border-color .12s; flex: 0 0 auto;
}
.ip-cb::after {
  content: ""; position: absolute; left: 4px; top: 0px; width: 4px; height: 9px;
  border: solid var(--text-on-accent); border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0); transition: transform .12s;
}



.ip-strow.in-set .ip-cb { background: var(--cyan); border-color: var(--cyan); }
.ip-strow.in-set .ip-cb::after { transform: rotate(45deg) scale(1); }

.ip-strow:not(.in-set):not(.ip-disabled) { opacity: .5; }
.ip-strow:hover:not(.ip-disabled) { background: #131c30; }



.ip-strow.active { background: rgba(56,225,255,.12); border-color: var(--cyan); opacity: 1; }
.ip-strow.active .ip-icon  { color: var(--cyan); }
.ip-strow.active .ip-label { color: var(--cyan); font-weight: 600; }
.ip-strow.active .ip-val   { color: var(--cyan); }
.ip-strow.active .ip-lvl   { color: var(--text-dim); }


.ip-strow.locked .ip-cbz { cursor: default; }
.ip-strow.locked .ip-cbz:hover { background: transparent; }


.ip-strow.ip-disabled { opacity: .34; }
.ip-strow.ip-disabled .ip-front { cursor: not-allowed; }
.ip-strow.ip-disabled:hover { background: transparent; }
.ip-strow.ip-disabled .ip-cbz { cursor: not-allowed; }
.ip-strow.ip-disabled .ip-cb { border-color: #2a3450; background: transparent; }
.ip-strow.ip-disabled .ip-cb::after { transform: rotate(45deg) scale(0); }
























.sh-skel { padding: 20px; }
.sh-skel-row {
  height: 14px;
  border-radius: 4px;
  margin-bottom: 0.55em;
  background: linear-gradient(90deg, var(--line) 25%, var(--line-2) 50%, var(--line) 75%);
  background-size: 200% 100%;
  animation: sh-skel-shimmer 1.1s ease-in-out infinite;
}
.sh-skel-row.sh-skel-w60 { width: 60%; }
.sh-skel-row.sh-skel-w80 { width: 80%; }
@keyframes sh-skel-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sh-skel-row { animation: none; }
}




#popin-mount[data-surface-native],
#mob-surface-mount[data-surface-native] {
  display: flex;
  flex-direction: column;
  padding: 8px 8px 0;
  overflow-y: auto;
  overflow-x: hidden;
}


@media (max-width: 600px) {
  #popin-mount[data-surface-native],
  #mob-surface-mount[data-surface-native] { padding-top: 0; }
  #popin-mount[data-surface-native]::before,
  #mob-surface-mount[data-surface-native]::before {
    content: '';
    display: block;
    flex: none;
    height: 8px;
  }
}

































#legal-ack-backdrop {
  position: fixed;
  inset: 0;
  z-index: 260;
  background: rgba(3, 5, 12, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(20px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
}
#legal-ack-backdrop.open {
  display: flex;
}

#legal-ack-backdrop .la-card {
  width: min(560px, 100%);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(56, 225, 255, 0.06);
  padding: 22px 24px 20px;
  color: var(--text);
  animation: la-in 0.25s cubic-bezier(0.2, 0.7, 0.3, 1);
}
@keyframes la-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
#legal-ack-backdrop .la-eyebrow {
  color: var(--cyan);
  font-size: var(--fs-caption);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.5em;
}
#legal-ack-backdrop h2 {
  margin: 0 0 0.5em;
  font-size: var(--fs-h3);
}
#legal-ack-backdrop .la-lead {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.55;
  font-size: var(--fs-small);
}
#legal-ack-backdrop .la-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 0;
}
#legal-ack-backdrop .la-link {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  text-decoration: none;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}
#legal-ack-backdrop .la-link:hover {
  border-color: var(--cyan);
}
#legal-ack-backdrop .la-link b {
  display: block;
  color: var(--cyan);
  font-size: var(--fs-small);
}
#legal-ack-backdrop .la-link span {
  display: block;
  color: var(--muted);
  font-size: var(--fs-caption);
  margin-top: 0.2em;
  line-height: 1.4;
}
#legal-ack-backdrop .la-new {
  margin: 14px 0 0;
  border: 1px dashed rgba(240, 179, 80, 0.55);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: var(--fs-small);
  color: var(--text-dim);
  line-height: 1.5;
}
#legal-ack-backdrop .la-new b {
  color: var(--gold);
}
#legal-ack-backdrop .la-version {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: var(--fs-caption);
}
#legal-ack-backdrop .la-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  flex-wrap: wrap;
}
#legal-ack-backdrop .la-primary {
  flex: 1 1 auto;
  min-height: 46px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 800;
  font-size: var(--fs-small);
  background: linear-gradient(135deg, var(--cyan), #8cf1ff);
  color: #04121a;
  cursor: pointer;
}
#legal-ack-backdrop .la-primary:hover {
  filter: brightness(1.06);
}
#legal-ack-backdrop .la-primary:disabled {
  opacity: 0.6;
  cursor: default;
  filter: none;
}
#legal-ack-backdrop .la-logout-form {
  display: contents;
}
#legal-ack-backdrop .la-logout {
  appearance: none;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
  transition: none;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
  color: var(--muted);
  font-size: var(--fs-caption);
  text-decoration: none;
}
#legal-ack-backdrop .la-logout:hover {
  color: var(--text);
  text-decoration: underline;
}
@media (max-width: 600px) {
  #legal-ack-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  #legal-ack-backdrop .la-card {
    border-radius: 16px 16px 0 0;
    padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    animation-name: la-up;
  }
  @keyframes la-up {
    from { transform: translateY(24px); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
  #legal-ack-backdrop .la-links {
    grid-template-columns: 1fr;
  }
  #legal-ack-backdrop .la-actions {
    flex-direction: column;
    align-items: stretch;
  }
  #legal-ack-backdrop .la-logout {
    text-align: center;
    padding: 0.6em 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  #legal-ack-backdrop .la-card {
    animation: none;
  }
}









.maint-banner {
  --maint-tone: var(--yellow);
  display: flex; align-items: center; gap: 10px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--maint-tone) 16%, transparent), color-mix(in srgb, var(--maint-tone) 6%, transparent)),
    var(--bg);
  border: 1px solid color-mix(in srgb, var(--maint-tone) 30%, transparent);
  border-left: 3px solid var(--maint-tone);
  color: var(--text); border-radius: 8px; padding: 9px 12px; font-size: 13px;
}
.maint-banner[hidden] { display: none; }
.maint-banner b { color: var(--maint-tone); font-weight: 600; }
.maint-ico { flex: 0 0 auto; width: 18px; height: 18px; color: var(--maint-tone, var(--yellow)); }
.maint-banner--hint { --maint-tone: var(--cyan); padding: 0 0 0 12px; }
.maint-banner--hint .atb-link { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; min-height: 44px; color: var(--text); text-decoration: none; }
.maint-banner--hint .atb-chev { margin-left: auto; color: var(--maint-tone); font-size: 16px; line-height: 1; }
.maint-banner--hint .atb-x { flex: 0 0 auto; min-width: 44px; min-height: 44px; margin: 0; padding: 0; background: none; border: 0; color: var(--muted); font-size: 15px; cursor: pointer; }
.ip-maint {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--yellow) 30%, transparent);
  background: linear-gradient(180deg, var(--yellow-a12), color-mix(in srgb, var(--yellow) 3%, transparent));
  border-radius: 10px; padding: 16px 14px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--yellow) 6%, transparent), 0 0 24px color-mix(in srgb, var(--yellow) 8%, transparent);
}
.ipm-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ipm-label { font-size: 11px; color: var(--yellow); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.ipm-title { font-size: 17px; font-weight: 600; line-height: 1.25; margin: 0 0 6px; }
.ipm-text { font-size: 12.5px; color: var(--text); opacity: .9; margin: 0; }
.ipm-pos { margin-top: 12px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ipm-pos b { color: var(--text); }
.ipm-nw { white-space: nowrap; }
@keyframes ipm-spin { to { transform: rotate(360deg); } }
.ipm-gear { animation: ipm-spin 6s linear infinite; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: reduce) { .ipm-gear { animation: none; } }



.re-watch {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--text);
  font: inherit; font-size: 12.5px; font-weight: 700; white-space: nowrap; cursor: pointer;
}
.re-watch:hover { border-color: var(--cyan); color: var(--cyan); }
.re-watch:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.re-watch svg { flex: none; width: 12px; height: 12px; }
#re-sheet-backdrop, #re-sheet-backdrop * { box-sizing: border-box; }
#re-sheet-backdrop {
  position: fixed; inset: 0; z-index: 270; display: flex; align-items: flex-end; justify-content: center;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
}
#re-sheet-backdrop .re-sheet {
  display: grid; gap: 10px; width: 100%; max-width: 520px; max-height: 100%; overflow-y: auto; outline: none;
  padding: 16px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-2); border-top: 1px solid var(--line-2); border-radius: 16px 16px 0 0; color: var(--text);
}
#re-sheet-backdrop .re-grip { width: 40px; height: 4px; margin: 0 auto 4px; border-radius: 2px; background: var(--line-2); }
#re-sheet-backdrop h3 { margin: 0; font-size: 17px; }
#re-sheet-backdrop p { margin: 0; color: var(--text-dim); font-size: 13px; }
#re-sheet-backdrop p b, #re-sheet-backdrop .re-size b { color: var(--text); }
#re-sheet-backdrop .re-size { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--text-dim); font-size: 13px; }
#re-sheet-backdrop .re-btns { display: grid; gap: 8px; }
#re-sheet-backdrop .re-btn { width: 100%; min-height: 44px; padding: 0 16px; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; }
#re-sheet-backdrop .re-btn.primary { border: 0; background: var(--cyan); color: var(--text-on-accent); }
#re-sheet-backdrop .re-btn.ghost { border: 1px solid var(--line-2); background: transparent; color: var(--text); }
#re-sheet-backdrop .re-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }




.tfx-none { display: none; }
.tfx-list { display: grid; gap: 6px; }
.tfx-row { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 6px; align-items: start; }
.tfx-num { font-weight: 800; font-size: 11px; border-radius: 5px; text-align: center; padding: 2px 0; color: var(--text-on-accent); }
.tfx-body { display: grid; gap: 2px; min-width: 0; }
.tfx-name { font-size: 12px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tfx { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: 12px; min-width: 0; }
.tfx-hunt { display: inline-flex; align-items: center; gap: 4px; color: var(--text); white-space: nowrap; }
.tfx-aim { width: 13px; height: 13px; flex: none; color: var(--cyan); }
.tfx-std, .tfx-std .tfx-aim { color: var(--muted); }
.tfx-tgt { display: inline-flex; align-items: center; gap: 4px; }
.tfx-shape { display: inline-flex; width: 12px; height: 12px; flex: none; }
.tfx-shape svg { width: 100%; height: 100%; overflow: visible; }
.tfx-shape svg g { stroke-width: 10; filter: none; }
.tfx-sec { display: inline-flex; align-items: center; gap: 3px; color: var(--text-dim); white-space: nowrap; }
.tfx-sec .tfx-shape { width: 10px; height: 10px; }
.tfx-sp {
  display: inline-block; max-width: 100%; padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--text); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tfx-sp i { font-style: normal; font-size: 11px; font-weight: 800; color: var(--gold); }
.tfx-sep { color: var(--line-2); }
.tfx-multi { cursor: help; border-bottom: 1px dotted var(--text-dim); }
.tfx-multi:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.tfx-tip {
  position: fixed; left: 0; top: 0; z-index: 400; display: grid; gap: 4px; min-width: 150px; padding: 8px 10px;
  visibility: hidden; pointer-events: none; cursor: default;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
  font-size: 12px; color: var(--text);
}
.tfx-tip b { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tfx-tip i { margin-top: 4px; font-style: normal; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tfx-multi.open .tfx-tip, .tfx-multi:focus-visible .tfx-tip { visibility: visible; }
@media (hover: hover) { .tfx-multi:hover .tfx-tip { visibility: visible; } }





.nav-badge {
  position: absolute; top: -7px; right: -7px;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px; padding: 0 4px 1px;
  border-radius: 999px; background: var(--gold); color: var(--text-on-accent);
  font-size: 11px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px var(--bg); pointer-events: none;
}
.nav-badge[hidden] { display: none; }



.ls-float {
  position: absolute; z-index: 5; pointer-events: none; white-space: nowrap;
  font-size: 12px; font-weight: 700; line-height: 1; color: var(--green);
  text-shadow: 0 0 6px rgba(94, 255, 138, 0.55), 0 1px 2px rgba(2, 4, 10, 0.85);
}


.gb-heal { color: var(--green); line-height: 1; }




.rc-hp-row { display: flex; align-items: center; gap: 5px; }
.rc-hp-row > .rc-hp-bar, .rc-hp-row > .rc-hp { flex: 1 1 auto; min-width: 0; }
.rc-defy { flex: 0 0 auto; width: 6px; height: 6px; box-sizing: border-box; border: 1px solid var(--gold); background: var(--gold); transform: rotate(45deg); }
.rc-defy[hidden] { display: none; }
.rc-defy--off { background: transparent; }





.rc-hp-line { display: flex; justify-content: space-between; align-items: center; gap: 6px; min-height: 11px; }
.rc-acid { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; font-size: 11px; font-weight: 700; line-height: 1; color: var(--acid, #b9e83a); font-variant-numeric: tabular-nums; animation: rc-acid-tick 1s ease-out infinite; }
.rc-hp-line > .rc-hp-text { margin-left: auto; }
.rc-acid[hidden] { display: none; }
.rc-acid svg { width: 9px; height: 11px; display: block; }
@keyframes rc-acid-tick { 0% { transform: scale(1.35); filter: brightness(1.6); } 45%, 100% { transform: scale(1); filter: none; } }
@media (prefers-reduced-motion: reduce) { .rc-acid { animation: none; } }



.cta-hint { display: block; color: var(--orange); font-weight: 600; }
.cta-target { display: block; }



.aj-hint {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  color: var(--muted); font-size: 15px; font-weight: 600; white-space: nowrap; pointer-events: none;
}
.aj-hint[hidden] { display: none; }


.aj-boot { animation: aj-boot-in 0.3s ease-out 0.8s both; }
@keyframes aj-boot-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .aj-boot { animation-duration: 0s; }
}
.aj-hint svg { width: 36px; height: 36px; overflow: visible; }
.aj-hex-base { fill: none; stroke: var(--line-2); stroke-width: 2; }
.aj-hex-run {
  fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 18 72;
  filter: drop-shadow(0 0 3px var(--cyan-glow)); animation: aj-hexrun 1.6s linear infinite;
}
@keyframes aj-hexrun { to { stroke-dashoffset: -90; } }
.aj-still .aj-hex-run { animation: none; stroke-dasharray: none; opacity: 0.6; }
@media (prefers-reduced-motion: reduce) {
  .aj-hex-run { animation: none; stroke-dasharray: none; opacity: 0.6; }
}




.pr-card {
  box-sizing: border-box; position: relative; width: 100%; text-align: left;
  border: 1px solid var(--gold); border-radius: 10px; background: var(--card-bg);
  padding: 12px 13px; color: var(--text); font-size: 12px; line-height: 1.4;
}
.pr-kick { display: flex; align-items: center; gap: 6px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.pr-kick::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.pr-title { margin: 3px 0 0; font-size: 15px; font-weight: 700; line-height: 1.25; }
.pr-text { margin: 6px 0 0; color: var(--text-dim); font-size: 12px; line-height: 1.45; }
.pr-note { margin: 8px 0 0; color: var(--muted); font-size: 11.5px; }
.pr-cmd {
  display: inline-block; padding: 0 6px; border: 1px solid rgba(56, 225, 255, 0.45); border-radius: 4px;
  background: rgba(56, 225, 255, 0.10); color: var(--cyan);
  font: 600 11.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap;
}
.pr-btn {
  display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; min-height: 36px; margin-top: 10px; padding: 6px 12px;
  border: 1px solid var(--gold); border-radius: 8px; background: rgba(240, 179, 80, 0.10); color: var(--gold);
  font: inherit; font-size: 12.5px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.pr-btn:hover { background: rgba(240, 179, 80, 0.20); }
.pr-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pr-x {
  position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 6px;
  background: transparent; color: var(--muted); font-size: 14px; line-height: 1; cursor: pointer;
}
.pr-x:hover { color: var(--text); }
.pr-card--voll { padding: 14px 15px; }
.pr-card--voll .pr-btn, .pr-card--voll .pr-x { min-height: 44px; }
.pr-card--voll .pr-x { width: 44px; height: 44px; top: 0; right: 0; }
.pr-card[hidden] { display: none; }
.pr-hint { flex: 0 0 auto; pointer-events: auto; }
