


















  * { box-sizing: border-box; }










  :root { --panel-w-visual: 364px; }
  body {
    margin: 0; padding: 0;
    background: var(--bg);
    color: var(--text);
    font: 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    position: relative;
    width: 100vw; height: 100vh; height: 100svh;
    overflow: hidden;
  }

















  #hud {
    zoom: 1.3;
    position: absolute;
    left: 0; top: 0;
    width: 222px;
    height: calc(100vh / 1.3); height: calc(100svh / 1.3);
    background: var(--bg2);
    border-right: 1px solid var(--border);
    padding: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
    z-index: 2;
  }
  #hud .big   { color: var(--text); font-size: 18px; }
  #hud .label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 6px; }
  #hud .dmg   { color: var(--cyan); font-weight: 600; font-size: 22px; }
  #hud .wave  { color: var(--yellow); font-weight: 600; font-size: 22px; letter-spacing: 0.02em; }
  #hud .wave.boss { color: var(--magenta); text-shadow: 0 0 10px var(--magenta); }
  #hud .wave-phase { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
  #hud .wave-phase.pausing { color: var(--cyan); }

























  #stage {
    position: absolute;
    left: 288px; top: 0;
    width: calc(100vw - var(--panel-w-visual) - 288px);
    height: 100vh; height: 100svh;
    background: transparent;
    overflow: visible;
  }













  #canvas { display: block; position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100svh; z-index: 0; cursor: grab; }


  #canvas.cam-dragging { cursor: grabbing; }
















































































































































  #panel {
    zoom: 1.3;
    position: absolute;
    right: 0; top: 0;
    width: 280px;



    height: calc(100vh / 1.3); height: calc(100svh / 1.3);
    background: var(--bg2);
    border-left: 1px solid var(--border);
    padding: 14px;






    padding-bottom: 84px;



    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    z-index: 2;
  }














































































  #panel-scroll,
  #popin-mount,
  #settings-panel {
    scrollbar-gutter: stable;
    scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
  }
  #panel-scroll {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden;
    display: flex; flex-direction: column; gap: 12px;
  }
  #panel-scroll::-webkit-scrollbar,
  #popin-mount::-webkit-scrollbar,
  #settings-panel::-webkit-scrollbar { width: 8px; }
  #panel-scroll::-webkit-scrollbar-thumb,
  #popin-mount::-webkit-scrollbar-thumb,
  #settings-panel::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }
  #panel-scroll::-webkit-scrollbar-track,
  #popin-mount::-webkit-scrollbar-track,
  #settings-panel::-webkit-scrollbar-track { background: transparent; }










  #ip-upgrades-mount { display: flex; flex-direction: column; gap: 12px; }





















  #panel-footer { flex: 0 0 auto; pointer-events: auto; }
  #panel-footer:empty { display: none; }
  #panel h1 {
    margin: 0; font-size: 14px; color: var(--cyan); font-weight: 600;
  }
  #panel h1 small { color: var(--muted); font-weight: 400; letter-spacing: 0.04em; margin-left: 8px; }




















  .ip-h1 {










    min-height: 20px; line-height: 20px;




    flex: 1 1 auto; min-width: 0;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  }













  .ip-panel-headrow {
    display: flex; align-items: center; gap: 8px;
    margin: 0 0 10px;
  }
  .ip-panel-headrow > .ip-h1 { margin: 0; }
  .ip-panel-headrow > .ip-room { flex: 0 0 auto; margin: 0; }




































  @media (max-height: 1199.98px) and (pointer: fine) {







    :root { --panel-w-visual: 280px; }
    #panel {
      zoom: 1.0;
      height: calc(100vh / 1.0); height: calc(100svh / 1.0);









      padding-bottom: 64px;
      gap: 8px;
    }
  }




























  .table-wrap { overflow-x: auto; }
  #stats {
    width: 100%; border-collapse: collapse;
    font-size: 12px; font-variant-numeric: tabular-nums; table-layout: fixed;
  }
  #stats th, #stats td {
    padding: 6px 8px; text-align: right;
    border-bottom: 1px solid var(--border);
    white-space: nowrap; overflow: visible;
  }
  #stats th:first-child, #stats td:first-child { text-align: left; color: var(--muted); width: 86px; }
  #stats th { color: var(--muted); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; text-align: center; }
  td.attr-cell { line-height: 1.2; }
  td.attr-cmd-cell {
    color: var(--yellow);
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 11px; letter-spacing: 0.03em; text-align: right; line-height: 1.3;
  }
  .attr-cmd-sub { opacity: 0.55; display: block; }
  #stats-body td { padding: 4px 8px; }
  tr.cmd-group-tower td { color: var(--cyan); font-weight: 600; border-bottom: 2px solid var(--border); }
  tr.cmd-group-tower td.attr-cmd-cell { color: var(--cyan); }
  tr.section-stat-end td { border-bottom: 2px solid var(--border); }
  tr.cmd-group-other td { color: var(--text); }
  tr.cmd-group-other td.attr-cmd-cell { color: var(--yellow); }





  #panel.ip-active { pointer-events: auto; }







  .ip-stbl-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
  }
  .ip-stbl-title {
    font-size: 11px; color: var(--muted);
  }





  .ip-allmode-toggle {
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none;
    border: 1px solid var(--border); border-radius: 999px; padding: 4px 9px 4px 7px;
    font-size: 11px; color: var(--muted); transition: border-color .12s, color .12s;
    min-height: 32px;
  }
  .ip-allmode-toggle .ip-sw {
    width: 26px; height: 15px; border-radius: 999px; background: #243250;
    position: relative; transition: background .14s; flex: 0 0 auto;
  }
  .ip-allmode-toggle .ip-sw::after {
    content: ""; position: absolute; top: 2px; left: 2px;
    width: 11px; height: 11px; border-radius: 50%;
    background: var(--muted); transition: transform .14s, background .14s;
  }
  .ip-allmode-toggle.on { border-color: var(--magenta); color: var(--magenta); }
  .ip-allmode-toggle.on .ip-sw { background: var(--magenta); }
  .ip-allmode-toggle.on .ip-sw::after { transform: translateX(11px); background: #fff; }




















  .ip-stbl { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; table-layout: fixed; }
  .ip-stbl td { padding: 0; overflow: hidden; }





















  .ip-fu-row {
    display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 5px 8px;
    border: 1px solid var(--line); border-radius: 6px; font-size: 12px; color: var(--muted);
  }
  .ip-fu-row .credit-icon { width: 14px; height: 14px; flex: 0 0 auto; }
  .ip-fu-val { margin-left: auto; color: var(--yellow); font-variant-numeric: tabular-nums; }


  .ip-tpl-btn {
    margin-top: 10px; width: 100%; cursor: pointer; font-size: 12.5px;
    background: var(--bg); color: var(--yellow); border: 1px solid var(--border);
    border-radius: 8px; padding: 10px 12px; text-align: center;
    transition: border-color .12s, background .12s; min-height: 40px;
  }
  .ip-tpl-btn:hover { border-color: var(--yellow); }
  .ip-tpl-btn .ip-tpl-sub {
    display: block; font-size: 11px; color: var(--muted); margin-top: 2px;
  }
  .ip-tpl-btn.ip-tpl-active {
    color: var(--green); border-color: rgba(94,255,138,.4); background: rgba(94,255,138,.06);
  }
  .ip-tpl-btn.ip-tpl-active .ip-tpl-sub { color: var(--green); opacity: .8; }

  .ip-tpl-btn.ip-tpl-done { color: var(--green); opacity: .7; }
  .ip-tpl-btn.ip-tpl-done:hover { border-color: var(--border); cursor: default; }











  .ip-tpl-actions { margin-top: 4px; display: flex; flex-direction: column; gap: 6px; }
  .ip-tpl-action {
    display: flex; align-items: center; justify-content: center; gap: 4px;
    width: 100%; min-height: 32px; padding: 4px 8px; font-family: inherit;
    font-size: 11.5px; color: var(--cyan); background: transparent;
    border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer;
    transition: border-color .15s, background .15s;
  }
  .ip-tpl-action:hover, .ip-tpl-action:focus-visible {
    border-color: var(--cyan); background: rgba(56,225,255,.06); outline: none;
  }
  .ip-tpl-action .chev { opacity: .7; }






  .ip-tpl-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .ip-tpl-mode {
    min-height: 40px; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 1px; padding: 4px 6px;
    background: rgba(126,150,200,.06); border: 1px solid var(--line-2); border-radius: 8px;
    color: var(--text); font-family: inherit; font-size: 11.5px; cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
  }
  .ip-tpl-mode .m-lbl { font-weight: 600; }


  .ip-tpl-mode .m-sub { font-size: 11px; color: var(--muted); }
  .ip-tpl-mode:hover:not([disabled]):not(.on), .ip-tpl-mode:focus-visible:not(.on) {
    border-color: var(--cyan); outline: none;
  }
  .ip-tpl-mode.on {
    background: rgba(56,225,255,.16); border-color: var(--cyan); color: var(--cyan);
    box-shadow: inset 0 0 0 1px rgba(56,225,255,.35); cursor: default;
  }
  .ip-tpl-mode.on .m-sub { color: var(--cyan); opacity: .8; }
  .ip-tpl-mode[disabled] { opacity: .45; cursor: not-allowed; }

  .ip-tpl-mode[aria-busy="true"] { opacity: .55; cursor: progress; }







  .ip-tpl-modehint {
    grid-column: 1 / -1; font-size: 11px; color: var(--muted); text-align: center;
    margin-top: -2px; min-height: 15px; line-height: 15px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }




  .ip-rearm {
    display: flex; align-items: center; gap: 10px; margin: 10px 0 14px;
    padding: 9px 10px; min-height: 44px; cursor: pointer; user-select: none;
    border: 1px solid var(--border); border-radius: 8px;
    transition: border-color .12s, background .12s;
  }
  .ip-rearm:hover { border-color: var(--text-dim); }
  .ip-rearm.on { border-color: rgba(94,255,138,.55); background: rgba(94,255,138,.07); }
  .ip-rearm-box {
    width: 18px; height: 18px; flex: none; border: 2px solid var(--muted); border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: var(--green); transition: border-color .12s;
  }
  .ip-rearm.on .ip-rearm-box { border-color: var(--green); }




  .ip-rearm-txt { font-size: 12.5px; min-width: 0; flex: 1; }
  .ip-rearm-txt b { color: var(--text); }
  .ip-rearm-txt small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; line-height: 1.4; overflow-wrap: break-word; }


























  .ip-rearm-intent {
    appearance: none; -webkit-appearance: none;
    font: inherit; line-height: 1.2; color: var(--text);
    background: var(--bg-2) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%23838fa7' stroke-width='1.6'/></svg>") no-repeat right 7px center;

    box-sizing: border-box; border: 0 solid transparent; border-block-width: 13px; border-radius: 6px / 19px;
    background-clip: padding-box; box-shadow: inset 0 0 0 1px var(--border);
    height: calc(1.45em + 26px); margin-block: -13px; padding: 0 19px 0 7px; max-width: 100px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    cursor: pointer; vertical-align: middle;
  }
  .ip-rearm-intent:hover { box-shadow: inset 0 0 0 1px var(--text-dim); }
  .ip-rearm-intent:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--cyan); }
  .ip-rearm-intent:disabled { opacity: .6; cursor: default; }







  .ip-rearm-left { color: var(--green); font-weight: 700; white-space: nowrap; }
  .ip-rearm-refill {
    flex: none; align-self: center;
    background: none; border: 1px solid rgba(94,255,138,.55); color: var(--green); border-radius: 99px;
    padding: 3px 8px; font: inherit; font-size: 12px; font-weight: 700; line-height: 1.3; white-space: nowrap; cursor: pointer;
  }
  .ip-rearm-refill:hover { background: rgba(94,255,138,.12); }
  .ip-rearm-refill:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
  .ip-rearm-club-wrap { white-space: nowrap; }
  .ip-rearm-club { color: var(--muted); text-decoration: none; }
  .ip-rearm-club svg { color: var(--cyan); opacity: .75; }
  .ip-rearm-club:hover { color: var(--cyan); text-decoration: underline; }
  .ip-rearm-club:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
  .ip-readonly .ip-rearm { cursor: default; }
  .ip-readonly .ip-rearm:hover { border-color: var(--border); }













  .ip-guest-hint {
    display: flex; flex-direction: column; gap: 6px;
    margin: 10px 0 0; padding: 10px 10px 12px;
    border: 1px solid var(--line-2); border-radius: 8px;
    background: var(--bg2);
  }
  .ip-gh-title { font-weight: 700; font-size: 12.5px; color: var(--cyan); }
  .ip-gh-note { margin: 0 0 2px; font-size: 11px; line-height: 1.4; color: var(--text-dim); }
  .ip-gh-opt {
    display: flex; align-items: center; gap: 8px;
    width: 100%; min-height: 44px; padding: 7px 9px;
    border-radius: 8px; border: 1px solid var(--line-2);
    background: transparent; color: var(--text); font: inherit; text-align: left;
    cursor: pointer; text-decoration: none; box-sizing: border-box;
    transition: border-color .12s;
  }
  .ip-gh-opt:hover { border-color: var(--cyan); }



  .ip-gh-opt--primary { background: var(--cyan); border-color: var(--cyan); color: var(--text-on-accent); }
  .ip-gh-opt--primary .ip-gh-opt-sub { color: rgba(7, 9, 26, 0.72); }
  .ip-gh-opt-ic { font-size: 1.1em; line-height: 1; flex: 0 0 auto; }
  .ip-gh-opt-ic.tw { width: 1em; height: 1em; fill: var(--text-on-accent); }
  .ip-gh-opt-txt { min-width: 0; }
  .ip-gh-opt-main { display: block; font-weight: 700; font-size: 11.5px; }
  .ip-gh-opt-sub { display: block; font-size: 11px; color: var(--muted); line-height: 1.3; margin-top: 1px; }
  .ip-gh-opt:disabled { opacity: .6; cursor: default; }







  .ip-gh-more { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 6px; }
  .ip-gh-more .ip-gh-opt { justify-content: center; padding: 7px 6px; }
  .ip-gh-opt-ic.g { width: 1.1em; height: 1.1em; }
  .ip-gh-opt-ic.d { width: 1.1em; height: 1.1em; fill: var(--discord-blurple); }




  .ip-gh-opt--discord:hover { border-color: var(--discord-blurple); background: rgba(88, 101, 242, .12); }
  .ip-gh-opt--google:hover { border-color: var(--text-dim); background: rgba(255, 255, 255, .05); }
  .ip-gh-status { font-size: 11px; color: var(--text-dim); min-height: 1.2em; }

















  .ip-gh-status:empty { display: none; }








  .ip-num {
    display: inline-block; min-width: 28px; text-align: center; vertical-align: middle;
    font-weight: 800; font-size: 11px; border-radius: 5px; padding: 2px 6px;
    color: var(--text-on-accent); margin-right: 8px;
  }

  .ip-ro-badge {
    font-size: 11px; color: var(--muted);
    border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px;
  }

  .ip-readonly .ip-front { cursor: default; }
  .ip-readonly .ip-cbz { cursor: default; }
  .ip-readonly .ip-cbz:hover { background: transparent; }
  .ip-readonly .ip-strow:hover { background: transparent; }
  .ip-readonly .ip-tpl-btn { cursor: default; opacity: .9; }
  .ip-readonly .ip-tpl-btn:hover { border-color: var(--border); }




  .ip-readonly .ip-tpl-actions { display: none; }

  .ip-readonly .ip-allmode-toggle { cursor: default; }











  .ip-room {
    display: flex; align-items: center; gap: 7px;
    margin: 0 0 10px; font-size: 12.5px; line-height: 1; padding: 5px 9px;
    border-radius: 999px; border: 1px solid var(--border);
    background: rgba(255,255,255,.02); width: fit-content;
    transition: border-color .15s, background .15s;
  }
  .ip-room[hidden] { display: none; }
  .ip-room .rk {
    font-size: 11px; letter-spacing: .10em; text-transform: uppercase; color: var(--muted);
    transition: color .15s;
  }
  .ip-room .rv { color: var(--text); }
  .ip-room .rn { font-weight: 700; transition: color .15s; }
  .ip-room .rsub { color: var(--text-dim); }

  .ip-room.is-run { border-color: var(--cyan-a55); background: var(--cyan-a12); }
  .ip-room.is-run .rn { color: var(--cyan); }

  .ip-room.is-wait { border-color: var(--queued-a40); background: var(--queued-a10); }
  .ip-room.is-wait .rn { color: var(--queued); }
  .ip-room.is-wait .rk { color: var(--queued); opacity: .85; }
















  .ip-panel-headrow > .ip-room { max-width: 140px; overflow: hidden; }
  .ip-panel-headrow > .ip-room .rv { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }





  .ip-cta-wrap { margin-top: 6px; display: flex; flex-direction: column; gap: 8px; }
  .ip-cta {
    width: 100%; cursor: pointer; border-radius: 10px; text-align: center;
    letter-spacing: .02em;
    border: 1px solid; background: var(--bg);
    transition: transform .08s, box-shadow .12s, border-color .12s;
  }
  .ip-cta:active { transform: translateY(1px); }
  .ip-cta .ip-cta-sub { display: block; font-weight: 400; margin-top: 4px; opacity: .85; }

  .ip-cta.primary {
    padding: 16px 12px; font-size: 15px; font-weight: 800; min-height: 48px;
    color: var(--cyan); border-color: var(--cyan); box-shadow: 0 2px 16px rgba(56,225,255,.20);
  }
  .ip-cta.primary .ip-cta-sub { font-size: 11px; }
  .ip-cta.primary:hover { box-shadow: 0 2px 24px rgba(56,225,255,.30); }


  .ip-cta.secondary {
    padding: 10px 9px; font-size: 13px; font-weight: 600; min-height: 44px;
    color: var(--text-dim); border-color: var(--line-2);
  }
  .ip-cta.secondary .ip-cta-sub { font-size: 11px; }
  .ip-cta.secondary:hover { border-color: var(--text-dim); }





  .vx-explainer { display: flex; flex-direction: column; gap: 12px; }
  .vx-lead {
    margin: 0; color: var(--text); font-size: 12.5px; line-height: 1.5;
  }
  .vx-lead .vx-channel { color: var(--cyan); font-weight: 600; }

  .vx-points {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 9px;
  }
  .vx-points li {
    position: relative; padding-left: 16px;
    font-size: 12px; line-height: 1.45; color: var(--text);
  }
  .vx-points li::before {
    content: "›"; position: absolute; left: 2px; top: 0;
    color: var(--cyan); font-weight: 700;
  }
  .vx-points code {
    color: var(--yellow); font-family: ui-monospace, Menlo, monospace;
    font-size: 11.5px; letter-spacing: 0.02em;
  }
  .vx-points b { color: var(--text); font-weight: 600; }
  .vx-cred { color: var(--yellow); font-weight: 600; }


  .vx-cta-wrap { margin-top: 4px; pointer-events: auto; display: flex; flex-direction: column; gap: 10px; }
  .vx-cta {
    display: block; width: 100%; text-decoration: none; cursor: pointer;
    border-radius: 10px; padding: 16px 12px; text-align: center;
    font-size: 15px; font-weight: 700; letter-spacing: .02em;
    border: 1px solid var(--cyan); color: var(--cyan); background: var(--bg);
    box-shadow: 0 2px 14px rgba(56,225,255,.18);
    transition: transform .08s, box-shadow .12s; min-height: 48px;
    font: inherit; appearance: none;
  }
  .vx-cta:hover  { box-shadow: 0 2px 22px rgba(56,225,255,.28); }
  .vx-cta:active { transform: translateY(1px); }
  .vx-cta .vx-cta-sub { display: block; font-size: 11px; font-weight: 400; margin-top: 4px; opacity: .85; }




  .vx-cta--discord {
    border-color: var(--line-2); color: var(--text); background: transparent;
    box-shadow: none;
  }
  .vx-cta--discord:hover { border-color: var(--discord-blurple); color: #fff; background: rgba(88, 101, 242, .12); box-shadow: none; }





  .vx-cta--google {
    border-color: var(--line-2); color: var(--text); background: transparent;
    box-shadow: none;
  }
  .vx-cta--google:hover { border-color: var(--text-dim); color: #fff; background: rgba(255, 255, 255, .05); box-shadow: none; }



  .vx-cta-play {
    border-color: var(--cyan); background: var(--cyan); color: var(--bg);
    box-shadow: 0 2px 18px rgba(56,225,255,.3);
  }
  .vx-cta-play:hover  { box-shadow: 0 2px 26px rgba(56,225,255,.45); }
  .vx-cta-play .vx-cta-sub { opacity: .8; }
  .vx-cta-play[aria-busy="true"] { cursor: progress; opacity: .75; }
  .vx-cta-play[disabled] { cursor: not-allowed; }



  .vx-deeplink-highlight {
    box-shadow: 0 0 0 2px var(--cyan), 0 2px 22px rgba(56,225,255,.4);
  }

  .vx-play-status {
    min-height: 1.2em; font-size: 12px; line-height: 1.4; color: var(--text);
  }
  .vx-play-status.err { color: var(--red); }
  .vx-play-status .retry {
    margin-left: 6px; color: var(--cyan); text-decoration: underline; cursor: pointer;
  }






  .vx-cta-quiet {
    display: block; width: 100%; min-height: 44px; margin-top: 2px; padding: 0;
    background: none; border: 0; color: var(--cyan); font: inherit; font-size: 13px;
    cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
  }
  .vx-cta-quiet[hidden] { display: none; }
  .vx-cta-quiet[aria-busy="true"] { cursor: progress; opacity: .75; }
  .vx-cta-quiet[disabled] { cursor: not-allowed; }

  .vx-foot {
    margin: 2px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.45;
  }
  .vx-foot a { color: var(--cyan); text-decoration: none; }
  .vx-foot a:hover { text-decoration: underline; }


  .ip-queued,
  .ip-raumwait {
    width: 100%; border: 1px solid var(--border); background: var(--bg);
    border-radius: 10px; padding: 16px 14px; cursor: default;
  }

  .ipq-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
  .ipq-dot {
    width: 8px; height: 8px; border-radius: 999px; background: var(--muted);
    animation: ipq-pulse 1.4s ease-in-out infinite; flex: 0 0 auto;
  }
  @keyframes ipq-pulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
  @media (prefers-reduced-motion: reduce) { .ipq-dot { animation: none; opacity: .8; } }
  .ipq-label {
    font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em;
  }

  .ipq-pos { font-size: 26px; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
  .ipq-pos .ipq-me  { color: var(--text); }
  .ipq-pos .ipq-sep { color: var(--muted); margin: 0 2px; }
  .ipq-pos .ipq-tot { color: var(--muted); }

  .ipq-ctx { color: var(--muted); font-size: 11px; margin-top: 8px; line-height: 1.4; }













  .ipq-countdown {
    color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums;
    min-height: 16px; line-height: 16px; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; margin-top: 8px;
  }
  .ipq-countdown b { color: var(--text); font-weight: 600; }

  .ipq-bigrun { color: var(--yellow); opacity: .85; font-size: 11px; margin-top: 8px; letter-spacing: .02em; }
  .ipq-bigrun .gly { margin-right: 4px; }




  .ipq-leave {
    width: 100%; margin-top: 14px; cursor: pointer; min-height: 40px;
    background: var(--bg); color: var(--muted); border: 1px solid var(--line-2);
    border-radius: 8px; padding: 9px 12px; font-size: 12px; text-align: center;
    transition: border-color .12s, color .12s;
  }
  .ipq-leave:hover  { border-color: var(--queued); color: var(--queued); }
  .ipq-leave:focus-visible { outline: 2px solid var(--queued); outline-offset: 2px; }
  .ipq-leave:disabled { opacity: .5; cursor: default; border-color: var(--line-2); color: var(--muted); }


  #ip-toast {
    position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: var(--bg2); border: 1px solid var(--border); color: var(--text);
    padding: 8px 14px; border-radius: 8px; font-size: 12.5px;
    opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s;
    z-index: 999;
  }
  #ip-toast.ip-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }
  #ip-toast.ip-toast-warn { border-color: var(--red); color: var(--red); }




  #rim-cards { position: absolute; inset: 0; pointer-events: none; }
  .rim-card {
    position: absolute;
    width: 198px;
    transform: translate(-50%,-50%) scale(var(--tower-card-scale));
    background: var(--card-bg);
    border: var(--card-border-width) solid var(--card-accent);
    border-radius: var(--card-radius);
    padding: 8px 12px;
    font-size: 13px; line-height: 1.25;
    pointer-events: auto;
    cursor: default;



    transition: border-color .15s ease, box-shadow .15s ease;
    box-shadow: var(--card-shadow);
    color: var(--text);
    overflow: hidden; min-height: 96px;
  }


  .rim-card:hover:not(.rim-self) {
    --card-accent: var(--cyan-a55);
    box-shadow: var(--card-shadow), 0 2px 12px rgba(56, 225, 255, 0.18);
  }


  .rim-card.rim-self {
    --card-accent: var(--rim-self-c, var(--cyan));
    box-shadow:
      var(--card-shadow),
      0 0 0 1px var(--rim-self-c, var(--cyan)),
      0 2px 14px color-mix(in srgb, var(--rim-self-c, var(--cyan)) 40%, transparent);
  }
  .rim-card.empty { visibility: hidden; }
  .rim-card.dead  { opacity: 0.45; }
  .rim-card .rc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 5px; }

  .rim-card .rc-num { flex: 0 0 auto; min-width: 28px; text-align: center; align-self: center; font-weight: 800; font-size: 11px; border-radius: 5px; padding: 2px 6px; color: var(--text-on-accent); }
  .rim-card .rc-user { font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; letter-spacing: 0.01em; }

  .rim-card .rc-weapon { flex-shrink: 0; align-self: center; display: block; width: 18px; height: 18px; line-height: 0; }
  .rim-card .rc-weapon img { width: 18px; height: 18px; display: block; }
  .rim-card .rc-hp-bar { position: relative; height: 6px; background: var(--red-a18); border-radius: 3px; overflow: hidden; margin-bottom: 2px; }

  .rim-card .rc-hp-row { align-items: flex-start; }
  .rim-card .rc-hp-fill { height: 100%; background: var(--green); border-radius: 3px; transition: width 0.18s ease, background-color 0.18s ease; }
  .rim-card .rc-hp-fill.warn { background: var(--yellow); }
  .rim-card .rc-hp-fill.crit { background: var(--red); }



  .rim-card .rc-hp-mark { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--rc-mark-c, var(--muted)); box-shadow: 0 0 0 1px rgba(2, 4, 10, 0.7); opacity: 0; transition: opacity 0.15s ease; pointer-events: none; }
  .rim-card .rc-hp-mark--vulture { left: var(--rc-mark-at-vulture); }
  .rim-card .rc-hp-mark--boss { left: var(--rc-mark-at-boss); }
  .has-vulture .rim-card .rc-hp-mark--vulture, .has-bossvulture .rim-card .rc-hp-mark--boss { opacity: 1; }
  .rim-card.dead .rc-hp-mark { opacity: 0 !important; }
  .rim-card .rc-hp-text { font-size: 11px; color: var(--muted); text-align: right; line-height: 1.0; }
  .rim-card .rc-wallet { color: var(--yellow); font-variant-numeric: tabular-nums; }
  .rim-card .rc-focus  { color: var(--cyan); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rim-card .rc-stats { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin-top: 5px; font-size: 12px; align-items: baseline; }



  .credit-icon {
    display: inline-block;
    width: 1.05em; height: 1.05em;
    vertical-align: -0.18em;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='10.5' fill='none' stroke='%2338e1ff' stroke-opacity='0.4' stroke-width='1.5'/><circle cx='12' cy='12' r='8.5' fill='%230d1322' stroke='%2338e1ff' stroke-width='1.4'/><path d='M16.4 8.6 A5.2 5.2 0 1 0 16.4 15.4' fill='none' stroke='%23ffd84a' stroke-width='2.3' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat; background-position: center; background-size: contain;
  }
  .rim-card .rc-dmg-row {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 8px; margin-top: 4px; font-size: 11px; line-height: 1.1;
  }
  .rim-card .rc-dmg-row .rc-dmg-label  { color: var(--muted); }
  .rim-card .rc-dmg-row .rc-dmg-share  { color: var(--text); font-variant-numeric: tabular-nums; }
  .rim-card .rc-dmg-row .rc-dmg-value  { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 600; }
  .rim-card .rc-dmg-bar {
    position: relative; height: 4px;
    background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden;
    margin-top: 2px; margin-bottom: 2px;
  }
  .rim-card .rc-dmg-layer {
    position: absolute; top: 0; left: 0; height: 100%;
    background: var(--green); border-radius: 2px;
  }
  .rim-card .rc-dmg-layer.pastel { opacity: 0.35; z-index: 1; }
  .rim-card .rc-dmg-layer.strong { opacity: 1.0;  z-index: 2; }



  .rim-card.rc-solo .rc-dmg-row,
  .rim-card.rc-solo .rc-dmg-bar {
    display: none;
  }




  .rim-card .rc-progress {
    height: 4px; background: rgba(255,255,255,0.08);
    border-radius: 2px; overflow: hidden; margin-top: 5px;
  }
  .rim-card .rc-progress-fill { height: 100%; width: 0%; border-radius: 2px; transition: width 0.15s ease; }
  .rim-card.dead .rc-progress-fill { background: var(--muted) !important; opacity: 0.4; }
  .rim-card .rc-level-info {
    margin-top: 3px; padding: 2px 4px; text-align: center;
    font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em; border-radius: 3px; transition: background-color 60ms linear;
  }
  .rim-card .rc-template-next {
    margin-top: 5px; padding-top: 5px;
    border-top: 1px dashed rgba(255,255,255,0.07);
    font-size: 11px; color: var(--text); line-height: 1.2;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .rim-card .rc-template-next .rc-tpl-label {
    color: var(--muted); font-size: 11px; text-transform: uppercase;
    letter-spacing: 0.06em; margin-right: 4px;
  }
  .rim-card .rc-template-next.ended { color: var(--muted); font-style: italic; }
  .rim-card .rc-template-next.ended .rc-tpl-label {
    text-transform: none; letter-spacing: 0; font-size: 11px; font-style: italic; margin-right: 0;
  }
  .rim-card .rc-special {
    margin-top: 5px; padding-top: 5px; border-top: 1px dashed rgba(255,255,255,0.07);
  }
  .rim-card .rc-special-row {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 6px; font-size: 11px; line-height: 1.2;
  }
  .rim-card .rc-special-label {
    color: var(--special); font-size: 11px; text-transform: uppercase;
    letter-spacing: 0.06em; opacity: 0.85; flex-shrink: 0;
  }
  .rim-card .rc-special-value { color: var(--special); font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
  .rim-card .rc-special-bar {
    height: 3px; background: var(--special-a12); border-radius: 2px; overflow: hidden; margin-top: 3px;
  }
  .rim-card .rc-special-bar-fill { height: 100%; background: var(--special); border-radius: 2px; opacity: 0.7; }

  .rim-card .rc-special-bar-over, .rim-card .rc-special-notch { display: none; }
  .rim-card .rc-special-bar.has-cap { position: relative; overflow: visible; }
  .rim-card .rc-special-bar.has-cap .rc-special-bar-fill { border-radius: 2px 0 0 2px; }
  .rim-card .rc-special-bar.has-cap .rc-special-bar-over { display: block; position: absolute; top: 0; left: calc(var(--rc-cap) * 100%); height: 100%; background: var(--special-hot); border-radius: 0 2px 2px 0; box-shadow: 0 0 5px var(--special); }
  .rim-card .rc-special-bar.has-cap .rc-special-notch { display: block; position: absolute; top: -2px; left: calc(var(--rc-cap) * 100%); width: 1px; height: 7px; background: var(--text); opacity: .9; }









  .gameover {
    position: absolute;
    inset: 0;
    background: rgba(6,8,15,0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--red);
    z-index: 120;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0s linear 0.3s;
  }
  .gameover.show { opacity: 1; visibility: visible; transition: opacity 0.3s; }
  .gameover .sub { color: var(--text); font-size: 14px; letter-spacing: 0.05em; margin-top: 12px; }
  .gameover .hint { color: var(--text); font-size: 16px; letter-spacing: 0.05em; margin-top: 24px; text-transform: none; }
  .gameover .hint code { color: var(--cyan); background: rgba(56, 225, 255, 0.10); padding: 2px 8px; border-radius: 4px; font-family: ui-monospace, monospace; font-size: 18px; }






  .gameover.hexa-endscreen {
    height: 100%; zoom: var(--es-scale, 1.3);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;















    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 30px clamp(24px, 4vw, 64px) 22px;
    font-size: 18px; letter-spacing: 0.06em;
    overflow: hidden;
  }


  .gameover .es-head { text-align: center; }
  .gameover .hexa-title {
    color: var(--cyan); font-size: 30px; font-weight: 700;
    letter-spacing: 0.20em; margin: 0 0 8px; text-transform: uppercase;
  }
  .gameover .hexa-subtitle {
    display: inline-flex; flex-wrap: wrap; justify-content: center;
    gap: 8px 10px; font-size: 13px; letter-spacing: 0.04em; color: var(--text-dim);
  }
  .gameover .es-meta-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 2px 10px; border: 1px solid var(--border); border-radius: 999px;
    background: rgba(255,255,255,0.02); white-space: nowrap;
  }
  .gameover .es-meta-chip b { color: var(--text); font-weight: 600; }
  .gameover .es-meta-chip .mk { color: var(--muted); text-transform: uppercase; font-size: 11px; letter-spacing: .1em; }


  .gameover .es-body { min-height: 0; overflow-y: auto; padding-right: 4px; }
  .gameover .es-body::-webkit-scrollbar { width: 9px; }
  .gameover .es-body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 5px; }




  #hexa-ranking {
    width: 100%; max-width: 980px; margin: 0 auto;
    border-collapse: collapse; table-layout: fixed;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-variant-numeric: tabular-nums;
    font-size: 15px; letter-spacing: 0; text-transform: none;
  }















  #hexa-ranking col.c-rank    { width: 64px; }
  #hexa-ranking col.c-tower   { width: auto; }
  #hexa-ranking col.c-dmg     { width: 195px; }
  #hexa-ranking col.c-credits { width: 100px; }
  #hexa-ranking col.c-hexas   { width: 410px; }

  #hexa-ranking thead th {
    color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em;
    font-size: 11px; font-weight: 500; text-align: right;
    padding: 0 14px 8px; border-bottom: 1px solid var(--border);
    position: sticky; top: 0; background: rgba(3, 5, 12, 0.96); z-index: 1;
  }
  #hexa-ranking thead th.col-rank  { text-align: center; }
  #hexa-ranking thead th.col-tower { text-align: left; }

  #hexa-ranking tbody td {
    padding: 9px 14px; vertical-align: middle; text-align: right;
    border-bottom: 1px solid rgba(31, 39, 64, 0.55);
  }
  #hexa-ranking tbody tr:last-child td { border-bottom: none; }

  #hexa-ranking tbody td.col-rank {
    text-align: center; position: relative;
    color: var(--yellow); font-weight: 700;
  }
  #hexa-ranking tbody td.col-rank::before {
    content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px;
    border-radius: 2px; background: var(--row-color, transparent);
  }
  #hexa-ranking tbody tr:hover td { background: rgba(56, 225, 255, 0.045); }

  .gameover .col-tower { text-align: left !important; }
  .gameover .es-tower { display: inline-flex; align-items: center; gap: 9px; min-width: 0; max-width: 100%; }
  .gameover .es-tower .wpn-icon { display: block; flex: 0 0 auto; image-rendering: pixelated; }







  .gameover .es-user { display: inline-block; max-width: 100%; font-weight: 600; letter-spacing: 0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; text-decoration: none; }
  .gameover .es-user:hover { text-decoration: underline; }




  .gameover .es-tower .es-kill { display: inline-flex; align-items: center; flex: 0 0 auto; }
  .gameover .es-tower .es-kill svg { display: block; width: 16px; height: 16px; overflow: visible; }








  #hexa-ranking tbody td.col-dmg { white-space: nowrap; }

  .gameover .es-dmg-pct { color: var(--text-dim); }

  .gameover .col-credits { color: var(--text); white-space: nowrap; }
  .gameover .col-credits .credit-icon { margin-right: 2px; }


  #hexa-ranking .col-total-cell { white-space: nowrap; }
  #hexa-ranking .es-total {
    color: var(--magenta); font-weight: 700; font-size: 16px;
    text-shadow: 0 0 8px var(--magenta);
  }

  #hexa-ranking .es-breakdown {
    display: block; margin-top: 2px;
    font-size: 12px; color: var(--text-dim);
    white-space: nowrap; letter-spacing: 0.01em;
  }
  #hexa-ranking .es-breakdown .bd-k { color: var(--muted); }

  #hexa-ranking .es-breakdown .bd-boss      { color: var(--yellow); }
  #hexa-ranking .es-breakdown .bd-boss--zero { color: var(--text-dim); }

  #hexa-ranking .es-breakdown .bd-pact { color: var(--red); }

  #hexa-ranking tr.rank-1 td.col-rank,
  #hexa-ranking tr.rank-1 .es-total { color: var(--rank-1); font-weight: 700; text-shadow: 0 0 10px rgba(94, 184, 255, 0.7); }


  #hexa-ranking tr.rank-1 .es-total svg.hexa-icon { filter: drop-shadow(0 0 10px rgba(94, 184, 255, 0.7)); }
  #hexa-ranking tr.rank-2 td.col-rank,
  #hexa-ranking tr.rank-2 .es-total { color: var(--rank-2); font-weight: 700; text-shadow: 0 0 8px rgba(192, 200, 212, 0.6); }
  #hexa-ranking tr.rank-2 .es-total svg.hexa-icon { filter: drop-shadow(0 0 8px rgba(192, 200, 212, 0.6)); }
  #hexa-ranking tr.rank-3 td.col-rank,
  #hexa-ranking tr.rank-3 .es-total { color: var(--rank-3); font-weight: 700; text-shadow: 0 0 8px rgba(205, 127, 50, 0.6); }
  #hexa-ranking tr.rank-3 .es-total svg.hexa-icon { filter: drop-shadow(0 0 8px rgba(205, 127, 50, 0.6)); }

  #hexa-ranking .hr-slot-chip {
    display: inline-block; margin-left: 6px; padding: 1px 5px;
    background: rgba(138, 160, 192, 0.10); color: var(--text-dim);
    border: 1px solid rgba(138, 160, 192, 0.30); border-radius: 3px; font-size: 11px;
  }


  .gameover .es-dock { display: flex; flex-direction: column; gap: 14px; }
  .gameover .es-summary {
    display: flex; align-items: center; justify-content: center;
    gap: 12px 22px; flex-wrap: wrap;
    padding-top: 14px; border-top: 1px solid var(--border);
  }
  .gameover .hexa-footer { color: var(--text); font-size: 14px; letter-spacing: 0.02em; text-transform: none; }
  .gameover .hexa-footer .hexa-total { color: var(--cur-hexa); font-weight: 700; }







  .gameover .es-guest-cta {
    width: 100%;
    display: flex; flex-direction: column; gap: 0.5em;
    padding: 0.9em 1em; border-radius: 8px;
    border: 1px solid var(--line-2);
    background: var(--bg2);




    pointer-events: auto;
  }
  .gameover .gc-title { font-weight: 700; font-size: 1.02em; color: var(--cyan); }
  .gameover .gc-note { margin: 0 0 0.3em; font-size: 0.8em; line-height: 1.4; color: var(--text-dim); }
  .gameover .gc-opt {
    display: flex; align-items: center; gap: 0.7em;
    width: 100%; min-height: 52px; padding: 0.6em 0.9em;
    border-radius: 8px; border: 1px solid var(--line-2);
    background: transparent; color: var(--text); font: inherit; text-align: left;
    cursor: pointer; text-decoration: none; box-sizing: border-box;
    transition: border-color 0.15s;
  }
  .gameover .gc-opt:hover { border-color: var(--cyan); }
  .gameover .gc-opt--primary { background: var(--cyan); border-color: var(--cyan); color: var(--text-on-accent); }
  .gameover .gc-opt--primary .gc-opt-sub { color: rgba(7, 9, 26, 0.72); }
  .gameover .gc-opt-ic { font-size: 1.25em; line-height: 1; flex: 0 0 auto; }
  .gameover .gc-opt-ic.tw { width: 1.1em; height: 1.1em; fill: var(--text-on-accent); }
  .gameover .gc-opt-txt { min-width: 0; }
  .gameover .gc-opt-main { display: block; font-weight: 700; font-size: 0.95em; }
  .gameover .gc-opt-sub { display: block; font-size: 0.78em; color: var(--muted); line-height: 1.35; margin-top: 1px; }
  .gameover .gc-opt:disabled { opacity: 0.6; cursor: default; }



  .gameover .gc-more { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 0.5em; }
  .gameover .gc-more .gc-opt { justify-content: center; }
  .gameover .gc-opt-ic.g { width: 1.1em; height: 1.1em; }
  .gameover .gc-opt-ic.d { width: 1.1em; height: 1.1em; fill: var(--discord-blurple); }


  .gameover .gc-opt--discord:hover { border-color: var(--discord-blurple); background: rgba(88, 101, 242, .12); }
  .gameover .gc-opt--google:hover { border-color: var(--text-dim); background: rgba(255, 255, 255, .05); }
  .gameover .gc-status { font-size: 0.78em; color: var(--text-dim); min-height: 1.2em; }
  .gameover .gc-status.ok { color: var(--green); }
  .gameover .gc-status.err { color: var(--red); }
  .gameover .gc-later {
    display: block; width: 100%; background: none; border: 0; color: var(--muted);
    font: inherit; font-size: 0.8em; padding: 0.5em; cursor: pointer; min-height: 44px;
  }
  .gameover .gc-later:hover { color: var(--text-dim); }
  .gameover .gc-reach-details summary {
    font-size: 0.78em; color: var(--cyan); cursor: pointer; padding: 0.3em 0; min-height: 44px;
    display: flex; align-items: center;
  }
  .gameover .gc-reach { display: grid; grid-template-columns: auto 1fr; gap: 0.4em 0.6em; font-size: 0.78em; margin: 0.4em 0 0; }
  .gameover .gc-reach dt { color: var(--muted); white-space: nowrap; }
  .gameover .gc-reach dd { margin: 0; color: var(--text-dim); line-height: 1.4; }
  .gameover .gc-reach .yes { color: var(--green); }
  .gameover .gc-reach .no { color: var(--red); }
  .gameover .gc-warn {
    border-left: 3px solid var(--gold); background: rgba(240, 179, 80, 0.07);
    padding: 0.6em 0.8em; font-size: 0.76em; color: var(--text-dim); line-height: 1.45;
    border-radius: 0 6px 6px 0; margin-top: 0.6em;
  }
  .gameover .gc-warn b { color: var(--gold); }





  .gameover .es-pool-line {
    width: 100%; text-align: center; font-size: 13px; color: var(--text-dim);
    display: flex; gap: 8px; align-items: baseline; justify-content: center; flex-wrap: wrap;
  }
  .gameover .es-pool-line .pl-label  { text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.75; }
  .gameover .es-pool-line .pl-amount { color: var(--magenta); font-weight: 700; }
  .gameover .es-pool-line .pl-share  { color: var(--green); font-weight: 600; }







  .ct-rank { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-variant-numeric: tabular-nums; }
  .ct-rank-head { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; border-bottom: 1px solid var(--border); }
  .ct-rank-num { text-align: right; }
  .ct-rank-name { color: var(--cyan); font-weight: 600; }
  .ct-rank-pos  { color: var(--yellow); font-weight: 700; }
  .ct-rank-1 { color: var(--rank-1); font-weight: 700; text-shadow: 0 0 10px rgba(94, 184, 255, 0.7); }
  .ct-rank-2 { color: var(--rank-2); font-weight: 700; text-shadow: 0 0 8px rgba(192, 200, 212, 0.6); }
  .ct-rank-3 { color: var(--rank-3); font-weight: 700; text-shadow: 0 0 8px rgba(205, 127, 50, 0.6); }


  .gameover .hexa-status {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    font-size: 12px; text-transform: none; letter-spacing: 0.04em;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
  }
  .gameover .hexa-status .hexa-status-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: currentColor; box-shadow: 0 0 8px currentColor;
  }
  .gameover .hexa-status[data-status="pending"] { color: var(--muted); background: var(--muted-a10); border: 1px solid var(--muted-a30); }
  .gameover .hexa-status[data-status="pending"] .hexa-status-dot { animation: hexa-pulse 1.4s ease-in-out infinite; }
  .gameover .hexa-status[data-status="queued"]  { color: var(--queued); background: var(--queued-a10); border: 1px solid var(--queued-a40); }
  .gameover .hexa-status[data-status="synced"]  { color: var(--green); background: rgba(94, 255, 138, 0.10); border: 1px solid rgba(94, 255, 138, 0.40); }
  .gameover .hexa-status[data-status="synced"] .hexa-status-dot { animation: hexa-glow 1.8s ease-in-out infinite; }
  .gameover .hexa-status[data-status="failed"]  { color: var(--red); background: rgba(255, 77, 110, 0.10); border: 1px solid rgba(255, 77, 110, 0.40); }
  .gameover .hexa-status[data-status="timeout"] { color: var(--yellow); background: rgba(255, 216, 74, 0.10); border: 1px solid rgba(255, 216, 74, 0.40); }
  @keyframes hexa-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
  @keyframes hexa-glow  { 0%, 100% { box-shadow: 0 0 6px currentColor; } 50% { box-shadow: 0 0 14px currentColor; } }
  @media (prefers-reduced-motion: reduce) {
    .gameover .hexa-status[data-status="pending"] .hexa-status-dot { animation: none; opacity: .8; }
    .gameover .hexa-status[data-status="synced"]  .hexa-status-dot { animation: none; box-shadow: 0 0 10px currentColor; }
  }



  .gameover .hexa-cooldown { color: var(--text-dim); font-size: 13px; letter-spacing: 0.03em; }
  .gameover .hexa-cooldown:empty::before { content: 'Bereit für die nächste Runde'; visibility: hidden; }




















  #achievement-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    width: 100%;
  }
  .ac-section-label {
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.14em; color: var(--muted); opacity: 0.75;
  }




  .ac-marquee {
    width: 100%;
    overflow: hidden;
  }






  .ac-track {
    display: flex;
    flex-direction: row;
    width: max-content;
    margin: 0 auto;
  }










  .ac-row {
    display: flex; flex-direction: row; align-items: stretch; gap: 9px; flex-wrap: nowrap;
    width: max-content; flex-shrink: 0;
  }






  .ac-row--dup {
    display: none;
    margin-left: 9px;
  }
  .ac-marquee.is-marquee .ac-row--dup { display: flex; }





  .ac-marquee.is-marquee {
    pointer-events: auto;
  }
  .ac-marquee.is-marquee .ac-track {
    animation: ac-marquee-scroll var(--ac-marquee-duration, 20s) linear infinite;
  }
  .ac-marquee.is-marquee:hover .ac-track {
    animation-play-state: paused;
  }
  @keyframes ac-marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(var(--ac-marquee-shift, 0px)); }
  }






  @media (prefers-reduced-motion: reduce) {
    .ac-marquee.is-marquee {
      overflow-x: auto; overflow-y: hidden;
    }
    .ac-marquee.is-marquee .ac-track {
      animation: none;
    }
    .ac-marquee.is-marquee .ac-row--dup {
      display: none;
    }
  }
  .ac-card {









    flex: 0 0 166px; min-width: 140px; max-width: 186px;
    background: rgba(13, 19, 34, 0.92);
    border: 1px solid var(--border); border-radius: 7px;
    padding: 8px 10px;
    display: flex; flex-direction: column; gap: 3px;
    position: relative; overflow: hidden;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 11px; color: var(--text);
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    animation: ac-card-in 0.28s ease-out both;
  }
  @keyframes ac-card-in {
    from { opacity: 0; transform: translateY(7px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .ac-card.completed {
    border-color: var(--cyan);
    box-shadow: 0 0 12px rgba(56,225,255,0.28), 0 2px 8px rgba(0,0,0,0.5);
  }
  .ac-card.completed::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--cyan) 0%, rgba(56,225,255,0.3) 100%);
    border-radius: 7px 7px 0 0;
  }
  .ac-card .ac-name {
    font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.2;
  }
  .ac-card .ac-achievement {
    font-size: 11px; color: var(--muted); text-transform: uppercase;
    letter-spacing: 0.06em; line-height: 1.25; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;






    max-height: 28px;
  }
  .ac-card .ac-bar-wrap {
    position: relative;
    height: 3px; background: rgba(255,255,255,0.06);
    border-radius: 2px; overflow: hidden; margin-top: 3px;
  }
  .ac-card .ac-bar-fill {
    height: 100%; border-radius: 2px; background: var(--green);
    opacity: 0.6; transition: width 0.3s ease;
  }

  .ac-card .ac-bar-gain {
    position: absolute; top: 0; height: 100%;
    background: var(--yellow); border-radius: 2px;
    box-shadow: 0 0 5px rgba(255, 216, 74, .6);
    animation: ac-gain-grow .45s ease-out .15s both;
    transform-origin: left center;
  }
  @keyframes ac-gain-grow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
  .ac-card.completed .ac-bar-fill { background: var(--cyan); opacity: 0.9; }
  .ac-card .ac-meta {
    display: flex; justify-content: space-between; align-items: center; gap: 4px; margin-top: 2px;
  }
  .ac-card .ac-pct {
    font-size: 11px; font-variant-numeric: tabular-nums; color: var(--muted);
    font-weight: 600; letter-spacing: 0.03em; white-space: nowrap;
  }
  .ac-card.completed .ac-pct { color: var(--cyan); }

  .ac-card .ac-gain {
    font-size: 11px; font-variant-numeric: tabular-nums;
    color: var(--yellow); font-weight: 700; letter-spacing: 0.02em;
    white-space: nowrap; text-shadow: 0 0 6px rgba(255, 216, 74, .35);
  }
  .ac-card.completed .ac-gain { display: none; }
  .ac-card .ac-reward {
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.03em; white-space: nowrap;
  }
  .ac-card:not(.completed) .ac-reward { display: none; }





  .ac-card .ac-reward--hexa { color: var(--cur-hexa); }
  .ac-card .ac-reward--draw { color: var(--cur-draw); }





  .ac-reward .draw-icon {
    vertical-align: -0.1em;
    margin: 0 1px;
  }









  #season-progress {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;




    pointer-events: auto;
  }
  .es-season-rows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .es-season-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 12px;
  }
  .es-season-name { font-weight: 700; }
  .es-season-val { color: var(--gold); font-weight: 600; white-space: nowrap; }
  .es-season-link {
    font-size: 11px; color: var(--cyan); text-decoration: none;
    display: inline-flex; align-items: center; min-height: 24px;
  }
  .es-season-link:hover { text-decoration: underline; }
  .es-season-link:focus-visible {
    text-decoration: underline; outline: 2px solid var(--cyan); outline-offset: 2px;
  }








  #club-boost-line {
    width: 100%;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
  }
  .es-club-boost-label { font-weight: 600; }
  .es-club-boost-amt {
    color: var(--cyan);
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 3px;
  }






  #join-window-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(6, 8, 15, 0.72);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  #join-window-overlay.show { opacity: 1; }
  #join-window-overlay .jw-title {
    color: var(--cyan);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  #join-window-overlay .jw-countdown {
    font-size: 64px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--yellow);
    letter-spacing: 0.04em;
    line-height: 1;
    margin-bottom: 12px;
  }
  #jw-countdown-display.urgent {
    color: var(--red);
    text-shadow: 0 0 18px var(--red);
  }
  #join-window-overlay .jw-hint {
    color: var(--text);
    font-size: 14px;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
  }
  #jw-player-count {
    color: var(--muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
  }
  #jw-player-count.has-players {
    color: var(--green);
  }







  #settings-bar {
    position: fixed;
    right: 16px;
    bottom: 14px;
    z-index: 92;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 13px;
    border-radius: 99px;
    background: rgba(13,19,34,0.78);
    border: 1px solid var(--border);
    pointer-events: auto;
  }
  #settings-bar[hidden] { display: none; }
























  #settings-bar:has(#settings-panel.open) { z-index: 130; }

  .sb-divider {
    width: 1px; height: 20px;
    background: var(--border);
    flex-shrink: 0;
  }


  #audio-speaker-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; padding: 0;
    background: none; border: none; cursor: pointer; outline: none;
    --spk-color: var(--text);
    opacity: 0.9;
    transition: opacity 0.2s;
  }
  #audio-speaker-btn:hover { opacity: 1; --spk-color: var(--cyan); }
  .spk-svg { width: 24px; height: 24px; display: block; overflow: visible; }
  .spk-body { fill: var(--spk-color); transition: fill 0.15s; }
  .spk-wave {
    stroke: var(--spk-color); stroke-width: 1.7;
    stroke-linecap: round; fill: none;
    opacity: 0; transition: opacity 0.15s;
  }
  .spk-mute {
    stroke: var(--red); stroke-width: 1.9; stroke-linecap: round;
    fill: none; display: none;
  }

  #audio-speaker-btn[data-level="1"] .spk-wave-1 { opacity: 1; }
  #audio-speaker-btn[data-level="2"] .spk-wave-1,
  #audio-speaker-btn[data-level="2"] .spk-wave-2 { opacity: 1; }
  #audio-speaker-btn[data-level="3"] .spk-wave-1,
  #audio-speaker-btn[data-level="3"] .spk-wave-2,
  #audio-speaker-btn[data-level="3"] .spk-wave-3 { opacity: 1; }

  #audio-speaker-btn[data-level="0"] .spk-mute { display: block; }
  #audio-speaker-btn[data-level="0"] { --spk-color: var(--red); opacity: 1; }


  #ws-wifi {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px;
    --wifi: var(--muted);
    transition: opacity 0.4s;
  }
  .wifi-svg { width: 22px; height: 22px; display: block; overflow: visible; }
  .wifi-arc {
    stroke: var(--wifi); stroke-width: 1.9;
    stroke-linecap: round; fill: none;
    transition: opacity 0.3s, stroke 0.3s;
  }
  .wifi-dot { fill: var(--wifi); transition: fill 0.3s; }

  #ws-wifi[data-state="connected"]    { --wifi: var(--green-a75); opacity: 0.6; }
  #ws-wifi[data-state="reconnecting"] { --wifi: var(--orange);         opacity: 1; }
  #ws-wifi[data-state="disconnected"] { --wifi: var(--red);            opacity: 1; }

  #ws-wifi[data-state="disconnected"] .wifi-arc-2,
  #ws-wifi[data-state="disconnected"] .wifi-arc-3 { opacity: 0.2; }

  #ws-wifi[data-state="reconnecting"] .wifi-arc-3 {
    animation: wifi-pulse 1.4s ease-in-out infinite;
  }
  @keyframes wifi-pulse {
    0%,100% { opacity: 0.35; }
    50%     { opacity: 1; }
  }
  @media (prefers-reduced-motion: reduce) {
    #ws-wifi[data-state="reconnecting"] .wifi-arc-3 { animation: none; opacity: .8; }
  }


  #settings-gear-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; padding: 0;
    background: none; border: none; cursor: pointer; outline: none;
    color: var(--text);
    opacity: 0.9;
    transition: opacity 0.2s, color 0.2s;
  }
  #settings-gear-btn:hover,
  #settings-gear-btn[aria-expanded="true"] { opacity: 1; color: var(--cyan); }
  .gear-svg { width: 22px; height: 22px; display: block; overflow: visible; }






  #settings-gear-btn.eco-active { position: relative; }
  #settings-gear-btn.eco-active::after {
    content: "🍃"; position: absolute; top: -4px; right: -4px; font-size: 11px;
    line-height: 1; filter: drop-shadow(0 0 3px rgba(0,0,0,.7));
  }






  #settings-panel {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    width: 400px;
    max-width: calc(100vw - 28px);
    max-height: min(78vh, 640px);
    overflow-y: auto;
    background: rgba(13,19,34,0.96);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    transform-origin: bottom right;
    transform: scale(0.85) translateY(4px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s cubic-bezier(0.2, 0, 0.2, 1),
                opacity 0.18s ease;
    box-shadow: 0 18px 50px rgba(0,0,0,.5);
  }
  #settings-panel.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  #settings-panel .sp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
  #settings-panel .sp-head h2 { font-size: 15px; letter-spacing: .02em; color: var(--text); font-weight: 600; }
  #settings-panel .sp-close { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; padding: 4px 8px; }
  #settings-panel .sp-close:hover { color: var(--text); }

  #settings-panel .sec { border: 1px solid var(--border); border-radius: 11px; background: rgba(255,255,255,.02); margin-bottom: 10px; overflow: hidden; }
  #settings-panel .sec:last-child { margin-bottom: 0; }
  #settings-panel .sec-h { display: flex; align-items: center; gap: 9px; padding: 11px 12px; font-size: 13.5px; font-weight: 600; color: var(--text); }
  #settings-panel .sec-h .ico { width: 20px; text-align: center; font-size: 15px; }
  #settings-panel .sec-body { padding: 0 12px 11px; }
  #settings-panel .sec-sub { color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 2px; }

  #settings-panel .row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 9px 0; border-top: 1px solid var(--border); min-height: 44px;
  }
  #settings-panel .row:first-child { border-top: 0; }
  #settings-panel .row .lbl { font-size: 13.5px; color: var(--text); }
  #settings-panel .row .lbl small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 1px; }
























  #settings-panel .tgl {
    position: relative; width: 40px; height: 22px; flex: 0 0 auto;
    border-radius: 999px; border: 1px solid var(--border);
    background: rgba(0,0,0,.25); cursor: pointer; padding: 0;
    box-sizing: border-box;
    transition: background .15s, border-color .15s;
  }
  #settings-panel .tgl::after {
    content: ""; position: absolute; top: 50%; left: 2px; width: 16px; height: 16px;
    translate: 0 -50%; transform: none;
    border-radius: 50%; background: var(--muted); transition: left .15s, background .15s;
  }
  #settings-panel .tgl[aria-checked="true"] { background: rgba(56,225,255,.18); border-color: var(--cyan); }
  #settings-panel .tgl[aria-checked="true"]::after { left: 20px; background: var(--cyan); }



  #settings-panel .tgl.gold[aria-checked="true"] { background: rgba(240,179,80,.16); border-color: var(--gold); }
  #settings-panel .tgl.gold[aria-checked="true"]::after { background: var(--gold); }
  #settings-panel .tgl[aria-checked="mixed"] { opacity: .55; }
  #settings-panel .tgl[aria-checked="mixed"]::after { left: 11px; }
  #settings-panel .tgl:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }





  #settings-panel .tgl:disabled { opacity: .35; cursor: not-allowed; }


  #settings-panel .vol-row { display: flex; align-items: center; gap: 10px; padding: 6px 0 10px; }
  #settings-panel .vol-row .sp-vol-label { font-size: 12px; color: var(--muted); flex-shrink: 0; }
  #settings-panel .vol-row input[type=range] {
    flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px;
    outline: none; cursor: pointer; --fill: 100%;
    background: linear-gradient(to right, var(--cyan) 0%, var(--cyan) var(--fill), var(--border) var(--fill), var(--border) 100%);
  }
  #settings-panel .vol-row input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
    background: var(--cyan); box-shadow: 0 0 6px var(--cyan-glow); cursor: pointer; transition: transform .1s;
  }
  #settings-panel .vol-row input[type=range]::-moz-range-thumb {
    width: 14px; height: 14px; border-radius: 50%; background: var(--cyan);
    box-shadow: 0 0 6px var(--cyan-glow); cursor: pointer; border: none;
  }
  #settings-panel .vol-row input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.2); }
  #settings-panel .vol-row input[type=range]:hover::-moz-range-thumb { transform: scale(1.2); }
  #settings-panel .vol-row input[type=range]:disabled { opacity: .35; cursor: default; }
  #settings-panel .vol-val { width: 42px; text-align: right; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }



  #settings-panel .grp { border-top: 1px solid var(--border); }
  #settings-panel .grp-h { display: flex; align-items: center; gap: 8px; padding: 9px 0; min-height: 44px; cursor: pointer; }
  #settings-panel .grp-h .chev { color: var(--muted); font-size: 11px; transition: transform .15s; width: 14px; }
  #settings-panel .grp[data-open="1"] .grp-h .chev { transform: rotate(90deg); }
  #settings-panel .grp-h .glabel { flex: 1; font-size: 13.5px; color: var(--text); }
  #settings-panel .grp-h .gcount { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
  #settings-panel .grp-items { display: none; padding: 0 0 6px 22px; }
  #settings-panel .grp[data-open="1"] .grp-items { display: block; }
  #settings-panel .grp-items .row { min-height: 40px; padding: 6px 0; }
  #settings-panel .grp-items .row .lbl { font-size: 12.5px; color: var(--text); }


  #settings-panel .eco-note {
    margin-top: 8px; padding: 8px 10px; border-radius: 8px;
    background: rgba(255,179,71,.1); border: 1px solid rgba(255,179,71,.35);
    color: var(--orange); font-size: 12px; display: none;
  }
  #settings-panel .eco-note.on { display: block; }









  #settings-panel .px-hint {
    border-left: 3px solid var(--gold); background: rgba(240,179,80,.07);
    padding: 8px 10px; font-size: 11.5px; color: var(--muted);
    line-height: 1.5; border-radius: 0 6px 6px 0; margin-top: 8px;
  }
  #settings-panel .push-hint { color: var(--muted); font-size: 11.5px; margin-top: 6px; }

  #settings-panel .guest-note {
    padding: 9px 10px; border-radius: 8px; background: rgba(240,179,80,.09);
    border: 1px solid rgba(240,179,80,.3); color: var(--gold); font-size: 12.5px;
  }
  #settings-panel .guest-note a { color: var(--gold); }











  #zoom-bar {
    position: fixed;
    left: 304px;
    bottom: 14px;
    height: 44px;
    z-index: 92;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    border-radius: 99px;
    background: rgba(13,19,34,0.78);
    border: 1px solid var(--border);
  }
  #zoom-bar[hidden] { display: none; }
  #zoom-bar button {
    display: flex; align-items: center; justify-content: center;
    height: 34px; min-width: 34px; padding: 0 5px;
    border: 0; border-radius: 99px; background: transparent;
    color: var(--muted); cursor: pointer;
    transition: color .15s, background .15s;
  }
  #zoom-bar button:hover { color: var(--text); }
  #zoom-bar button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
  #zoom-bar button[aria-pressed="true"] { color: var(--cyan); background: rgba(56,225,255,.12); }
  #zoom-bar .zb-div { width: 1px; height: 20px; background: var(--border); }
  #zoom-bar .zb-svg { width: 24px; height: 24px; }








  #zoom-bar #zoom-free-btn {
    display: flex; align-items: center; gap: 6px;
    height: 34px; padding: 0 10px 0 8px;
    border: 0; border-radius: 99px; background: rgba(255,179,71,.12);
    color: var(--orange); cursor: pointer;
    font: inherit; font-size: 13px; font-variant-numeric: tabular-nums;
    transition: color .15s, background .15s;
  }
  #zoom-bar #zoom-free-btn[hidden] { display: none; }
  #zoom-bar #zoom-free-btn:hover { color: var(--text); }
  #zoom-bar #zoom-free-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }






  #cam-free-toast {
    position: fixed;
    left: 304px;
    bottom: 66px;
    z-index: 92;





    max-width: calc(50vw - (var(--panel-w-visual) / 2) - 160px);
    background: rgba(13,19,34,.92);
    border: 1px solid var(--orange);
    border-radius: 10px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.4;
    padding: 8px 14px;
    box-shadow: 0 2px 14px rgba(0,0,0,.5);
    pointer-events: none;
  }
  #cam-free-toast[hidden] { display: none; }










  #login-indicator {
    position: fixed;
    left: 14px;
    bottom: 12px;
    z-index: 95;
    font-size: 11px;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    color: var(--muted);
    opacity: 0.65;
    transition: opacity 0.25s;
    pointer-events: auto;
    user-select: none;
    line-height: 1;
  }
  #login-indicator:hover { opacity: 1; }
  #login-indicator .li-name { color: var(--cyan); font-weight: 600; }
  #login-indicator a {
    color: var(--cyan); font-weight: 600; text-decoration: none;
  }
  #login-indicator a:hover { text-decoration: underline; }

  #login-indicator a.li-name {
    text-decoration: underline dotted rgba(56, 225, 255, 0.6);
    text-underline-offset: 3px;
    cursor: pointer;
  }
  #login-indicator a.li-name:hover { text-decoration-style: solid; }
  #login-indicator a.li-name:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 2px; }
























  #legal-links {
    position: fixed;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%);
    z-index: 90;
    display: block;
    font-size: 11px;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    color: var(--muted);
    opacity: 0.45;
    transition: opacity 0.25s;
    pointer-events: auto;
    user-select: none;
    white-space: nowrap;
  }
  #legal-links[hidden] { display: none; }
  #legal-links:hover { opacity: 0.9; }
  #legal-links a { color: inherit; text-decoration: none; }
  #legal-links a:hover { color: var(--cyan); text-decoration: underline; }










  .pact-banner-head { display: flex; align-items: center; gap: 16px; justify-content: space-between; }
  .pact-banner-rewards { display: flex; align-items: center; gap: 10px; white-space: nowrap; }



  #pact-panel .pact-banner-head    { flex-wrap: wrap; }
  #pact-panel .pact-banner-rewards { flex-wrap: wrap; white-space: normal; }

  .pact-pill-label { color: var(--text-dim); font-size: 11.5px; }



















  .rzs-wrap {
    position: absolute;
    top: 12px; right: 12px;
    z-index: 130;
    pointer-events: auto;
  }
  .rzs-wrap[hidden] { display: none !important; }
  .rzs-pick {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    max-width: min(50vw, 320px);
    padding: 6px 12px 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    font-size: 12.5px;
    cursor: pointer;
    box-shadow: 0 2px 14px rgba(0,0,0,.45);
    backdrop-filter: blur(4px);
  }
  .rzs-pick:hover, .rzs-pick[aria-expanded="true"] { border-color: var(--cyan); }
  .rzs-pick:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
  .rzs-pick-lvl { color: var(--muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
  .rzs-pick-cur { display: inline-flex; gap: 6px; align-items: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rzs-pick-meta { color: var(--muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
  .rzs-pick-car { color: var(--muted); font-size: 11px; flex: none; }

  .rzs-pop {
    display: none;
    position: absolute;
    right: 0; top: calc(100% + 8px);
    z-index: 20;
    width: 360px;
    max-width: calc(100vw - 32px);
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,.55);
  }
  .rzs-pop.open { display: block; }
  .rzs-title { margin: 2px 2px 8px; font-weight: 700; font-size: 15px; color: var(--text); }


  .rzs-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--muted); }
  .rzs-dot--run { background: var(--green); }
  .rzs-dot--wait { background: var(--queued); }
  .rzs-dot--over { background: var(--muted); }
  .rzs-dot--auto { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

  .rzs-row {
    appearance: none;
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px;
    margin-bottom: 4px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 600;
    font-size: 12.5px;
    text-align: left;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
  }
  .rzs-row:hover { border-color: var(--text-dim); }
  .rzs-row[aria-selected="true"] { border-color: var(--cyan); color: var(--cyan); }
  .rzs-row:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
  .rzs-row--mode { margin-bottom: 8px; }
  .rzs-nm { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
  .rzs-nm > span:first-child { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
  .rzs-nm small { color: var(--muted); font-weight: 400; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rzs-row--mode .rzs-nm small { white-space: normal; }
  .rzs-st { margin-left: auto; flex: none; text-align: right; font-size: 11px; line-height: 1.4; color: var(--muted); font-weight: 600; white-space: nowrap; }

  .rzs-tag { font-size: 11px; border: 1px solid var(--cyan); color: var(--cyan); border-radius: 8px; padding: 0 6px; }
  .rzs-tag--own { border-color: var(--green); color: var(--green); }

  .rzs-search {
    width: 100%;
    height: 38px;
    margin-bottom: 8px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-2);
    color: var(--text);
    padding: 0 12px;
    font: inherit;
    font-size: 12.5px;
    outline: none;
  }
  .rzs-search:focus { border-color: var(--cyan); }

  .rzs-sec { display: flex; justify-content: space-between; margin: 10px 2px 6px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
  .rzs-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
  .rzs-pill { appearance: none; border: 1px solid var(--border); background: transparent; color: var(--muted); border-radius: 14px; padding: 3px 10px; font: inherit; font-size: 11.5px; cursor: pointer; }
  .rzs-pill.on { border-color: var(--cyan); color: var(--cyan); }
  .rzs-pill:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

  .rzs-more { width: 100%; margin-top: 4px; min-height: 40px; border-radius: 8px; border: 1px dashed var(--border); background: transparent; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
  .rzs-more:hover { color: var(--text); border-color: var(--text-dim); }
  .rzs-more:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

  .rzs-hint { font-size: 11px; line-height: 1.45; color: var(--muted); margin: 10px 2px 2px; }
  .rzs-hint b { color: var(--text); }


  #rs-toast {
    position: absolute;
    top: 68px; right: 12px;
    z-index: 130;
    max-width: 280px;
    background: var(--card-bg);
    border: 1px solid var(--queued);
    border-radius: 8px;
    color: var(--text);
    font-size: 12px;
    line-height: 1.45;
    padding: 8px 11px;
    box-shadow: 0 2px 14px rgba(0,0,0,.5);
    pointer-events: none;
  }
  #rs-toast[hidden] { display: none !important; }
  #rs-toast b { color: var(--queued); }








  #maint-banner {
    position: absolute;
    top: 12px; left: 12px; right: calc(12px + min(50vw, 320px) + 12px);
    width: fit-content; max-width: calc(100% - 24px - min(50vw, 320px) - 12px);
    margin: 0 auto;
    z-index: 125;
    pointer-events: none;
  }
  @media (min-width: 1800px) {
    #maint-banner {
      left: 50%; right: auto; margin: 0;
      transform: translateX(-50%);
      max-width: calc(100% - 2 * (12px + 320px + 12px));
    }
  }



































  #nav-cluster {
    position: fixed;
    left: 12px;
    bottom: 34px;
    z-index: 96;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 264px;
  }
  .nc-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 8px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--cyan);
    color: var(--cyan);
    font-weight: 600;
    font-size: 12px;
    font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
    cursor: pointer;
    pointer-events: auto;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(56,225,255,.12);
    transition: box-shadow .12s, background .15s;
    user-select: none;
  }
  .nc-item:hover { box-shadow: 0 2px 20px rgba(56,225,255,.28); }



  .nc-item.active { background: rgba(56,225,255,.16); box-shadow: 0 2px 20px rgba(56,225,255,.30); }





  .nc-item.is-login { border-color: var(--line-2); color: var(--text-dim); box-shadow: none; }
  .nc-item:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
  .nc-icon { display: inline-flex; line-height: 1; }



  #nc-erfolge[style*="visibility:hidden"] { pointer-events: none; }

















  @media (max-width: 1000px) and (pointer: fine) {
    .nc-item { padding: 0; }
    .nc-label { display: none; }
  }





















  #ob-layer .hidden { display: none !important; }

  #ob-layer {
    position: absolute;
    inset: 0;
    z-index: 120;
    pointer-events: none;
  }



  #ob-hook {
    position: absolute;
    top: 84px;
    left: 38%;
    transform: translateX(-50%);
    width: min(340px, 80vw);
    pointer-events: auto;
  }








  #ob-c1, #ob-c2, #ob-c3 {
    position: absolute;
    width: 260px;
    pointer-events: auto;
  }




  #ob-c1::after, #ob-c2::after, #ob-c3::after {
    content: "";
    position: absolute;
    right: -9px;
    top: var(--arrow-top, 28px);
    width: 16px;
    height: 16px;
    background: rgba(13,19,34,0.97);
    border-right: 1px solid var(--cyan);
    border-bottom: 1px solid var(--cyan);
    transform: rotate(-45deg);
  }
  #ob-c1.ob-fallback-pos::after, #ob-c2.ob-fallback-pos::after, #ob-c3.ob-fallback-pos::after {
    display: none;
  }








  #ob-rearm, #ob-tpl {
    position: absolute;
    width: 280px;
    pointer-events: auto;
  }




  #ob-mates {
    position: absolute;
    top: 84px;
    left: 38%;
    transform: translateX(-50%);
    width: min(340px, 80vw);
    pointer-events: auto;
  }










  #ob-unlock {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    width: min(360px, 90vw);
    pointer-events: auto;
  }


  #ob-bridge {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    width: min(460px, 92vw);
    pointer-events: auto;
    background: var(--bg2);
    border: 1px solid var(--cyan);
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(56,225,255,.30), 0 8px 30px rgba(0,0,0,.5);
    padding: 16px 18px;
    animation: ob-pop-bridge .22s ease-out;
    font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  }
  @keyframes ob-pop-bridge {
    from { opacity: 0; transform: translateX(-50%) translateY(8px) scale(.98); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  }
  #ob-bridge .ob-kick {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cyan);
    font-weight: 700;
  }
  #ob-bridge .ob-big {
    margin: 6px 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
  }
  #ob-bridge .ob-big .ob-h { color: var(--magenta); }
  #ob-bridge .ob-body {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
  }
  #ob-bridge .ob-body .ob-c-hexa { color: var(--magenta); font-weight: 600; }
  #ob-bridge .ob-body .ob-c-credits { color: var(--muted); }

  #ob-bridge .ob-hexa-ref { white-space: nowrap; }
  #ob-bridge .ob-hexa-ref .cur-ic { vertical-align: -2px; }











  #ob-show {
    position: absolute;
    top: 12px;
    left: 12px;
    transform: none;
    width: 280px;
    pointer-events: none;
    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;
  }



  #ob-show.ob-show--auftritt { animation: ob-pop .22s ease-out, ob-show-auftritt 2.1s cubic-bezier(.45, 0, .2, 1) both; }
  @keyframes ob-show-auftritt {
    0%   { left: 50%; top: 16%; transform: translateX(-50%) scale(.94); opacity: 0; }
    9%   { left: 50%; top: 16%; transform: translateX(-50%) scale(1.06); opacity: 1; }
    14%  { left: 50%; top: 16%; transform: translateX(-50%) scale(1.04); }
    72%  { left: 50%; top: 16%; transform: translateX(-50%) scale(1.04); box-shadow: 0 12px 40px rgba(0,0,0,.6), 0 0 34px rgba(56,225,255,.45); }
    100% { left: 12px; top: 12px; transform: translateX(0) scale(1); }
  }
  @media (prefers-reduced-motion: reduce) { #ob-show.ob-show--auftritt { animation: ob-pop .22s ease-out; } }
  #ob-show h2 { margin: 0 0 8px; font-size: 16px; color: var(--text); }
  #ob-show p { margin: 0 0 10px; font-size: 12.5px; line-height: 1.5; color: var(--text-dim); }
  #ob-show .ob-show-status { margin: 0; font-size: 11px; color: var(--muted); }











  .ob-nextrun {
    position: relative;
    margin-top: 6px;
    background: rgba(13,19,34,.97);
    border: 1px solid var(--cyan);
    border-radius: 12px;
    padding: 12px 14px 10px;
    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;
  }
  .ob-nextrun::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    background: rgba(13,19,34,.97);
    border-left: 1px solid var(--cyan);
    border-top: 1px solid var(--cyan);
    transform: rotate(45deg);
  }
  .ob-nextrun p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--text); }
  .ob-nextrun p b { color: var(--cyan); }


  #popin-scrim {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;



    background: rgba(4,6,12,0.86);
    animation: popin-scrim-in 0.18s ease;
  }
  #popin-scrim.open { display: flex; }
  @keyframes popin-scrim-in { from { opacity: 0; } to { opacity: 1; } }



































  #popin {
    width: min(1180px, 94vw);
    height: 95vh;
    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);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-size: 15px;
    animation: popin-modal-in 0.2s cubic-bezier(0.2,0.7,0.3,1);
  }
  @keyframes popin-modal-in {
    from { opacity: 0; transform: translateY(14px) scale(0.985); }
    to   { opacity: 1; transform: none; }
  }


  #popin-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(56,225,255,0.05), transparent);
    flex-shrink: 0;
  }





  #ph-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-family: inherit;
    color: var(--cyan);
    background: none;
    border: 1px solid var(--line-2);
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s;
  }
  #ph-back[hidden] { display: none; }
  #ph-back:hover { border-color: var(--cyan); }
  #popin-head .ph-title {
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
    flex-shrink: 0;
  }
  #popin-head .ph-title .ph-glyph { color: var(--cyan); font-size: 17px; }
  #popin-head .ph-spacer { margin-left: auto; flex-shrink: 0; }








  #popin-head .ph-live {
    font-size: 11.5px;
    color: var(--muted);
    display: none;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    white-space: nowrap;
    min-width: 0;
    flex-shrink: 1;
    overflow: hidden;
  }
  #popin-head .ph-live.visible { display: flex; }
  #popin-head .ph-live .ph-live-dot { flex-shrink: 0; }



  #popin-head .ph-live .ph-live-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }
  #popin-head .ph-live .ph-lv { color: var(--cyan); font-variant-numeric: tabular-nums; }
  #popin-head .ph-live .ph-dmg { color: var(--magenta); font-variant-numeric: tabular-nums; }
  #ph-close {
    background: transparent;
    border: 1px solid var(--line-2);
    color: var(--text-dim);
    width: 30px; height: 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.15s, color 0.15s;
  }
  #ph-close:hover { border-color: var(--magenta); color: var(--magenta); }


























  #ph-subnav {
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
    padding: 0 18px;
  }
  #ph-subnav[hidden] { display: none; }
  #ph-subnav .dash-tabs {
    margin: 0;
    border-bottom: none;
  }




  #popin-body {
    flex: 1;
    overflow: hidden;
    position: relative;
  }









  #popin-mount {
    width: 100%;
    height: 100%;
  }
















  .enemy-intro .ei-trait { display:flex; justify-content:space-between; align-items:center; margin-top:8px; font-size:11.5px; }
  .enemy-intro .ei-trait .ei-tlabel { color:var(--muted); }
  .enemy-intro .ei-trait .ei-tval { font-weight:700; color:var(--ei,var(--red)); font-variant-numeric:tabular-nums; }

  .enemy-intro .ei-pips { display:flex; gap:3px; }
  .enemy-intro .ei-pip { width:10px; height:10px; border-radius:2px; background:#2a3550; }
  .enemy-intro .ei-pip.on { background:var(--ei,var(--red)); box-shadow:0 0 5px -1px var(--ei,var(--red)); }
  .enemy-intro .ei-special { font-size: 11.5px; line-height: 1.4; border-top: 1px solid var(--border); padding-top: 8px; margin-top: 8px; }



  #enemy-log {
    border-color: var(--cyan-a42);
    box-shadow: 0 6px 28px rgba(0,0,0,.6), 0 0 22px -7px var(--cyan-a50);
    pointer-events: none;
  }
  .el-head {
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: 11px; letter-spacing: 1.5px; font-weight: 700;
    color: var(--cyan); text-transform: uppercase; margin-bottom: 9px;
  }

  .el-head .el-wave { letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--muted); }









  .ei-strip {
    display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
    padding-top: 9px; margin-top: 10px;
    border-top: 1px solid var(--border);
  }
  .ei-chip {
    --c: var(--red);
    position: relative; width: 32px; height: 32px; flex: 0 0 32px;
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: 1px solid var(--border); border-radius: 6px;
    padding: 4px; cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s, transform .12s;
  }
  .ei-chip svg { width: 100%; height: 100%; display: block; }

  .ei-chip.is-active {
    border-color: var(--c);
    background: color-mix(in srgb, var(--c) 12%, transparent);
  }

  .ei-chip.is-pinned {
    border-color: var(--c);
    background: color-mix(in srgb, var(--c) 18%, transparent);
    box-shadow: 0 0 10px -2px var(--c);
  }
  .ei-chip.is-pinned::after {
    content: "⟡"; position: absolute; top: -7px; right: -6px;
    font-size: 11px; line-height: 1; color: var(--c);
    text-shadow: 0 0 5px var(--c);
  }
  .ei-chip:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }



  body.viewer-logged-in .ei-chip { pointer-events: auto; }


  .ei-pinnote {
    display: none; font-size: 11px;
    color: var(--c, var(--cyan));
    margin: -3px 0 9px; letter-spacing: .3px;
  }
  .ei-pinnote.show { display: block; }
  .ei-pinnote b { font-weight: 700; }






  .seg-enemy-badge {
    display: none; width: 8px; height: 8px; border-radius: 999px;
    background: var(--red); box-shadow: 0 0 6px -1px var(--red);
    flex-shrink: 0;
  }
  .has-enemy-badge .seg-enemy-badge { display: inline-block; }


































  :root { --boss-card-top: 226px; }
  #boss-card {


    --bc-acc: var(--magenta);
    position: absolute; top: var(--boss-card-top); left: 12px;
    width: 264px;
    background: rgba(13, 19, 34, 0.95);
    border: 1.5px solid var(--bc-acc);
    border-radius: 10px; padding: 13px 15px 14px;
    box-shadow: 0 6px 28px rgba(0,0,0,.6), 0 0 22px -5px var(--bc-acc);
    z-index: 97;
    pointer-events: none;
    opacity: 0; transform: translateY(-14px);
    transition: opacity .32s ease, transform .32s cubic-bezier(.2,.9,.3,1.4),
                border-color .4s, box-shadow .4s;
  }
  #boss-card.show { opacity: 1; transform: translateY(0); }






  #boss-card .bc-explain {
    margin-bottom: 11px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
    font-size: 11.5px; line-height: 1.45; color: var(--muted);
  }
  #boss-card .bc-explain b { color: var(--cyan); }
  #boss-card .bc-explain[hidden] { display: none; }


  #boss-card .bc-head { display: flex; align-items: center; gap: 11px; margin-bottom: 9px; }
  #boss-card .bc-glyph {

    width: 42px; height: 42px; flex: 0 0 42px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
  }
  #boss-card .bc-glyph svg { width: 100%; height: 100%; display: block; }
  #boss-card .bc-titles { min-width: 0; flex: 1; }
  #boss-card .bc-tag {
    font-size: 11px; letter-spacing: 1.6px; font-weight: 700;
    color: var(--bc-acc); text-transform: uppercase; opacity: .92;
  }




  #boss-card .bc-name { font-size: 18px; font-weight: 800; line-height: 1.1; letter-spacing: .3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #boss-card .bc-wave { color: var(--muted); font-weight: 600; letter-spacing: .4px; }
  #boss-card .bc-wave::before { content: "· "; }


  #boss-card .bc-hp { margin-bottom: 11px; }
  #boss-card .bc-hp-track {

    height: 11px; border-radius: 6px; overflow: hidden;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
  #boss-card .bc-hp-fill {
    height: 100%; width: 100%;
    background: var(--bc-acc);
    box-shadow: 0 0 10px -1px var(--bc-acc);
    transition: width .25s linear;
  }
  #boss-card .bc-hp-row {
    display: flex; justify-content: space-between; margin-top: 4px;
    font-size: 11px; font-variant-numeric: tabular-nums;
  }
  #boss-card .bc-hp-label { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
  #boss-card .bc-hp-val { color: var(--bc-acc); font-weight: 700; }












  #boss-card .bc-hp-track { position: relative; }
  #boss-card .bc-segs {
    position: absolute; inset: 0; display: flex; flex-direction: row-reverse; gap: 2px;
  }
  #boss-card .bc-seg {
    flex: 1 1 0; display: block; height: 100%; overflow: hidden; position: relative;
    background: rgba(255, 255, 255, 0.06);
  }
  #boss-card .bc-seg b {
    display: block; height: 100%; background: var(--bc-acc);
    box-shadow: 0 0 8px -1px var(--bc-acc); transition: width .25s linear;
  }
  #boss-card .bc-seg.is-active { outline: 1px solid rgba(255, 255, 255, .35); }






  #boss-card .bc-gen-row {
    display: flex; flex-direction: row-reverse; gap: 2px; margin-top: 5px;
    font-size: 11px; font-variant-numeric: tabular-nums; color: var(--muted);
  }
  #boss-card .bc-gen-row[hidden] { display: none; }
  #boss-card .bc-gen {
    flex: 1 1 0; min-width: 0; text-align: center; padding: 1px 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    border-radius: 4px; border: 1px solid transparent;
  }
  #boss-card .bc-gen.is-done { color: var(--green); }
  #boss-card .bc-gen.is-active { color: var(--text); border-color: var(--bc-acc); background: var(--mag-a14); }
  #boss-card .bc-gen.is-wait { opacity: .7; }


  #boss-card .bc-rank-title {
    margin-bottom: 5px;
    font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em;
  }



  #boss-card .bc-rank {
    display: table; width: 100%; border-collapse: collapse;
  }
  #boss-card .bc-row { display: table-row; }
  #boss-card .bc-row .c { display: table-cell; padding: 5px 0; vertical-align: middle; }

  #boss-card .bc-c-rank {
    width: 26px; font-size: 13px; text-align: center;
  }
  #boss-card .bc-c-name {
    font-size: 12.5px; padding-left: 6px !important;
    max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  #boss-card .bc-c-dmg { text-align: right; padding-left: 8px !important; min-width: 64px; }
  #boss-card .bc-c-bonus { text-align: right; padding-left: 8px !important; width: 56px; }


  #boss-card .bc-dmg-val { font-size: 12px; font-weight: 700; color: var(--text); }
  #boss-card .bc-dmg-bar {
    height: 3px; margin-top: 3px; border-radius: 2px; background: #222b44; overflow: hidden;
  }
  #boss-card .bc-dmg-bar > i {
    display: block; height: 100%; background: var(--magenta);
    box-shadow: 0 0 5px -1px var(--magenta); transition: width .25s linear;
  }




  #boss-card .bc-chip {
    display: inline-block; padding: 1px 6px; border-radius: 3px;
    font-size: 11px; font-weight: 700; font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-variant-numeric: tabular-nums;
    background: rgba(255, 216, 74, 0.12); color: var(--yellow);
    border: 1px solid rgba(255, 216, 74, 0.4);
  }
  #boss-card .bc-chip.top {
    background: rgba(255, 69, 181, 0.14); color: var(--magenta);
    border-color: rgba(255, 69, 181, 0.5); box-shadow: 0 0 8px -2px var(--magenta);
  }
  #boss-card .bc-chip.none {
    background: var(--muted-a10); color: var(--muted);
    border-color: var(--muted-a30);
  }


  #boss-card .bc-row.dead .bc-c-name { color: var(--muted); text-decoration: line-through; }
  #boss-card .bc-row.dead .bc-dmg-val { color: var(--muted); }


  #boss-card .bc-self-sep .c { padding: 3px 0 1px; display: table-cell; vertical-align: middle; }
  #boss-card .bc-self-sep .dots { color: var(--line-2); font-size: 11px; text-align: center; letter-spacing: 2px; }
  #boss-card .bc-row.self { background: rgba(56, 225, 255, 0.06); }
  #boss-card .bc-row.self .bc-c-name::after {
    content: " · du"; color: var(--muted); font-size: 11px; font-weight: 400;
  }


  #boss-card .bc-foot {
    margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--border);
    font-size: 11px; line-height: 1.45; color: var(--muted);
  }
  #boss-card .bc-foot b { color: var(--text); }
  #boss-card .bc-foot .k { color: var(--yellow); font-weight: 700; }


  #boss-card .bc-defeated-banner {
    display: none; margin-bottom: 11px; padding: 7px 0; text-align: center;
    font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--green); border-radius: 6px;
    border: 1px solid rgba(94, 255, 138, 0.4);
    background: rgba(94, 255, 138, 0.08);
    text-shadow: 0 0 10px rgba(94, 255, 138, .5);
  }


  #boss-card.defeated {
    border-color: var(--green);
    box-shadow: 0 6px 30px rgba(0,0,0,.6), 0 0 26px -4px var(--green);
    animation: bc-victory .6s ease;
  }
  @keyframes bc-victory {
    0% { transform: scale(1); }
    30% { transform: scale(1.035); }
    100% { transform: scale(1); }
  }
  #boss-card.defeated .bc-glyph {



    background: rgba(94, 255, 138, 0.16);
    border-color: rgba(94, 255, 138, 0.5);
  }
  #boss-card.defeated .bc-tag { color: var(--green); }
  #boss-card.defeated .bc-hp { display: none; }
  #boss-card.defeated .bc-defeated-banner { display: block; }
  #boss-card.defeated .bc-rank-title::after { content: " · final"; color: var(--green); }
  #boss-card.defeated .bc-chip { background: rgba(255, 216, 74, 0.2); }
  #boss-card.defeated .bc-chip.top { background: rgba(255, 69, 181, 0.22); }



  #boss-card.ignited .bc-hp { display: none; }
  #boss-card.ignited .bc-defeated-banner {
    display: block; color: var(--text);
    border-color: rgba(216, 224, 240, 0.35); background: rgba(216, 224, 240, 0.07); text-shadow: none;
  }
  #boss-card.ignited .bc-c-bonus, #boss-card.ignited .bc-foot { display: none; }


  #boss-card .bc-awarded-total { display: none; }
  #boss-card.defeated .bc-awarded-total {
    display: block; margin-top: 8px; font-size: 11px;
    color: var(--text); text-align: center;
  }
  #boss-card.defeated .bc-awarded-total b { color: var(--magenta); }











  #left-info {
    position: fixed; left: 12px; bottom: 76px; width: 264px; z-index: 96;
    display: flex; flex-direction: column; gap: 8px;
    pointer-events: none;
  }
  #left-info.li-empty { display: none; }


  .li-panel {
    background: rgba(13,19,34,.95);
    border: 1.5px solid var(--group-a55);
    border-radius: 11px; padding: 12px 14px;
    box-shadow: 0 6px 28px rgba(0,0,0,.6), 0 0 22px -7px var(--group-a50);
  }
  .li-panel[hidden] { display: none; }



  #group-bonus { pointer-events: none; }

  .gb-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
  .gb-glyph {
    width: 36px; height: 36px; flex: 0 0 36px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    background: var(--group-a12); border: 1px solid var(--group-a42);
  }
  .gb-glyph svg { width: 21px; height: 21px; fill: var(--group); filter: drop-shadow(0 0 6px var(--group-a50)); }
  .gb-titles { min-width: 0; flex: 1; }
  .gb-tag {
    font-size: 11px; letter-spacing: 1.5px; font-weight: 700;
    color: var(--group); text-transform: uppercase; opacity: .92;
  }
  .gb-sub { font-size: 11px; color: var(--muted); }
  .gb-sub b { color: var(--text); }

  .gb-hero {
    background: var(--group-a06); border: 1px solid var(--group-a14);
    border-radius: 8px; padding: 7px 10px 8px;
  }
  .gb-hero-lbl {
    font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 3px;
  }
  .gb-totals { display: flex; flex-wrap: wrap; gap: 4px 12px; }
  .gb-tot { display: inline-flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; }
  .gb-tot .g { font-size: 15px; color: var(--group); opacity: .9; }
  .gb-tot .v { font-size: 15px; font-weight: 700; color: var(--group); }

  .gb-list-lbl {
    font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted); margin: 10px 0 5px;
  }
  .gb-list { display: flex; flex-direction: column; gap: 5px; }



  .gb-row {
    display: flex; align-items: center; gap: 9px; font-size: 12.5px;
    padding: 3px 5px; margin: 0 -5px; border-radius: 6px;
    cursor: help; transition: background .12s;
  }
  .gb-row:hover { background: rgba(244,247,255,.07); }
  .gb-row.gb-row-active { background: rgba(244,247,255,.10); }
  .gb-row .gb-num {
    width: 28px; flex: 0 0 28px; text-align: center;
    font-weight: 800; font-size: 11px; border-radius: 5px;
    padding: 2px 0; color: var(--text-on-accent);
  }
  .gb-effs { display: flex; gap: 5px; flex: 1; min-width: 0; color: var(--text); }
  .gb-effs span { font-size: 14px; opacity: .92; line-height: 1; }





  #gb-tile-pop {
    position: fixed; z-index: 400; display: none;
    pointer-events: none;
    background: rgba(13,19,34,.97); border: 1px solid var(--border);
    border-radius: 12px; padding: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,.55);
  }
  #gb-tile-pop.show { display: block; }
  .gb-pop-lbl {
    font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 8px;
  }
  .gb-pop-lbl b { color: var(--text); }
  .gb-pop-tiles { display: flex; flex-wrap: wrap; gap: 8px; max-width: 320px; }




  .gb-tile {
    position: relative; width: 96px; height: 116px;
    background: linear-gradient(155deg, #131a44 0%, #0c1230 100%);
    border: 1px solid var(--card-color, var(--cyan));
    border-radius: 10px; overflow: hidden;
    box-shadow: 0 0 0 1px var(--card-color, var(--cyan)), 0 0 22px rgba(244,247,255,.18);
    flex: 0 0 auto;
  }

  .gb-tile::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--card-color, var(--cyan)) 0%, transparent 60%);
    opacity: .08; pointer-events: none; z-index: 0;
  }

  .gb-tile::after {
    content: ''; position: absolute; top: -4px; left: -16px;
    width: 52px; height: 52px; opacity: .24; z-index: 0; pointer-events: none;
    background-repeat: no-repeat; background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f4f7ff' d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
  }











  .gb-tile[data-tier="1"] { --card-color: var(--cyan); }
  .gb-tile[data-tier="2"] { --card-color: var(--magenta); }
  .gb-tile[data-tier="3"] { --card-color: var(--yellow); }
  .gb-tile[data-tier="4"] { --card-color: var(--green); }
  .gb-tile[data-tier="5"] { --card-color: var(--card-color-t5); }
  .gb-tile[data-tier="6"] { --card-color: var(--card-color-t6); }
  .gb-tile[data-tier="7"] { --card-color: var(--card-color-t7); }
  .gb-tile[data-tier="8"] { --card-color: var(--card-color-t8); }
  .gb-tile[data-tier="9"] { --card-color: var(--card-color-t9); }

  .gb-tile-surface {
    position: relative; z-index: 1; height: 100%;
    padding: 8px 8px 6px; display: flex; flex-direction: column;
  }

  .gb-tile-icon {
    font-size: 30px; line-height: 1; color: var(--white);
    text-shadow: 0 0 12px rgba(244,247,255,.55);
    margin-bottom: 2px;
  }


  .gb-tile-icon svg.stat-icon,
  .gb-tile-icon svg.cs-sym {
    filter: drop-shadow(0 0 12px rgba(244,247,255,.55));
  }
  .gb-tile-icon .credit-icon {
    width: 1em; height: 1em; vertical-align: -2px;
  }
  .gb-tile-name { font-size: 11px; font-weight: 600; color: var(--text); line-height: 1.15; }

  .gb-tile-bonus {
    margin-top: auto; font-size: 15px; font-weight: 700;
    color: var(--card-color, var(--cyan)); font-variant-numeric: tabular-nums;
  }

  .gb-tile-sub {
    font-size: 11px; font-weight: 600; color: var(--white); opacity: .72;
    letter-spacing: .02em; margin-top: 1px;
  }

  .gb-tile-badge {
    position: absolute; bottom: 6px; right: 6px; z-index: 2;
    font-size: 11px; font-weight: 800; padding: 2px 5px; border-radius: 999px;
    background: var(--card-color, var(--cyan)); color: var(--text-on-accent); letter-spacing: .04em;
  }




  body.viewer-logged-in #gb-list { pointer-events: auto; }







  #group-bonus .tfx-block { position: relative; padding-top: 14px; }
  #group-bonus .tfx-block > .gb-list-lbl { margin-top: 0; }
  .tfx-hint {
    position: absolute; left: 0; right: 0; top: 0; visibility: hidden; pointer-events: none;
    padding-top: 14px; font-size: 11px; line-height: 1.35; color: var(--text-dim);
  }
  #group-bonus .tfx-block.tfx-fit-hint { padding-top: 0; }
  .tfx-fit-hint > .gb-list-lbl, .tfx-fit-hint > .tfx-list { display: none; }
  .tfx-fit-hint > .tfx-hint { position: static; visibility: visible; }
  .tfx-fit-none { display: none; }
  #tfx-list {
    max-height: 330px; overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
  }
  body.viewer-logged-in #tfx-list { pointer-events: auto; }
  .gb-sub-empty { display: none; }
  #group-bonus.gb-nogroup .gb-sub { display: none; }
  #group-bonus.gb-nogroup .gb-sub.gb-sub-empty { display: block; }
  #group-bonus.gb-nogroup > .gb-hero,
  #group-bonus.gb-nogroup > .gb-list-lbl,
  #group-bonus.gb-nogroup > .gb-list { display: none; }
  #group-bonus.gb-nogroup .tfx-block { padding-top: 0; }
  #group-bonus.gb-nogroup .tfx-hint { padding-top: 0; }



  .q-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }




  #li-toggle {
    display: none;
    pointer-events: auto;
    align-self: stretch;
    width: 100%;
    background: rgba(13,19,34,.95); border: 1px solid var(--border);
    border-radius: 14px; padding: 3px; gap: 2px;
    box-shadow: 0 4px 18px rgba(0,0,0,.5);
  }
  body.viewer-logged-in #li-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .li-seg {
    display: inline-flex; align-items: center; gap: 6px;
    justify-content: center;
    border: 0; background: transparent; cursor: pointer;
    color: var(--muted); font: 600 11px/1 inherit; letter-spacing: .02em;
    padding: 7px 12px; border-radius: 999px;
    transition: background .15s, color .15s;
    font-family: inherit;
  }
  .li-seg .seg-glyph { font-size: 13px; line-height: 1; }
  .li-seg:hover:not(.is-active):not(:disabled) { color: var(--text); background: var(--muted-a10); }
  .li-seg.is-active { background: rgba(56,225,255,.14); color: var(--cyan); }
  .li-seg:disabled { color: var(--muted); opacity: .32; cursor: default; }

  .li-seg.seg-dps.is-active { background: var(--cyan-a12); color: var(--cyan); }

  .li-seg.seg-income.is-active { background: var(--yellow-a12); color: var(--yellow); }

  .li-seg.seg-balance.is-active { background: var(--mint-a12); color: var(--mint); }

  .li-seg.seg-pact.is-active { background: var(--red-a12); color: var(--red); }

  .li-seg.seg-pact:not(.is-active) svg.warn-icon { color: var(--red-light); }












  #li-handle {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; width: 100%; height: 30px; padding: 0 12px;
    border: 1px solid var(--border); border-radius: 999px;
    background: rgba(13,19,34,.95); box-shadow: 0 4px 18px rgba(0,0,0,.5);
    color: var(--muted); font: 600 11px/1 inherit; letter-spacing: .04em;
    cursor: pointer; pointer-events: auto;
  }
  #li-handle[hidden] { display: none; }
  #li-handle > * { pointer-events: none; }
  #li-handle b { color: var(--cyan); font-weight: 700; }
  .li-handle-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .li-handle-hl { color: var(--text); font-variant-numeric: tabular-nums; }
  .li-handle-chev { flex: 0 0 auto; font-size: 12px; color: var(--text-dim); }





  .li-collapse-row {
    grid-column: 1 / -1;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    border: 0; border-top: 1px solid var(--border); border-radius: 0;
    margin-top: 2px; padding: 8px 12px 5px; width: 100%;
    background: transparent; color: var(--text-dim); cursor: pointer;
    font: 600 11px/1 inherit; letter-spacing: .02em; font-family: inherit;
  }
  .li-collapse-row:hover { color: var(--text); }







  #li-toggle[hidden] { display: none !important; }



  #dps-graph {
    border-color: var(--cyan-a42);
    box-shadow: 0 6px 28px rgba(0,0,0,.6), 0 0 22px -7px var(--cyan-a50);
    pointer-events: none;

    transform-origin: bottom left;
    transition: transform .16s ease-out;
  }


  body.viewer-logged-in #dps-graph { pointer-events: auto; }
  body.viewer-logged-in #dps-graph:hover {
    transform: scale(2);
    position: relative;
    z-index: 97;
  }



  #income-graph {
    border-color: var(--yellow-a42);
    box-shadow: 0 6px 28px rgba(0,0,0,.6), 0 0 22px -7px var(--yellow-a50);
    pointer-events: none;
    transform-origin: bottom left;
    transition: transform .16s ease-out;
  }

  #income-graph .dg-glyph {
    background: var(--yellow-a12);
    border-color: var(--yellow-a42);
  }


  #income-graph .dg-glyph .credit-icon { width: 22px; height: 22px; vertical-align: 0; }
  #income-graph .dg-tag { color: var(--yellow); }

  body.viewer-logged-in #income-graph { pointer-events: auto; }
  body.viewer-logged-in #income-graph:hover {
    transform: scale(2);
    position: relative;
    z-index: 97;
  }



  #balance-graph {
    border-color: var(--mint-a42);
    box-shadow: 0 6px 28px rgba(0,0,0,.6), 0 0 22px -7px var(--mint-a50);
    pointer-events: none;
    transform-origin: bottom left;
    transition: transform .16s ease-out;
  }

  #balance-graph .dg-glyph {
    background: var(--mint-a12);
    border-color: var(--mint-a42);
  }

  #balance-graph .dg-glyph .credit-icon { width: 22px; height: 22px; vertical-align: 0; color: var(--mint); }
  #balance-graph .dg-tag { color: var(--mint); }

  body.viewer-logged-in #balance-graph { pointer-events: auto; }
  body.viewer-logged-in #balance-graph:hover {
    transform: scale(2);
    position: relative;
    z-index: 97;
  }





  .dg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
  .dg-glyph {
    width: 36px; height: 36px; flex: 0 0 36px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;

    background: var(--cyan-a12); border: 1px solid var(--cyan-a42);
  }

  .dg-glyph svg { width: 21px; height: 21px; stroke: var(--cyan); }
  .dg-titles { min-width: 0; flex: 1; }
  .dg-tag {
    font-size: 11px; letter-spacing: 1.5px; font-weight: 700;
    color: var(--cyan); text-transform: uppercase; opacity: .95;
  }




  .dg-mount { position: relative; }








  .ge-sub { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
  .ge-sub b { color: var(--text); }
  .ge-canvas { display: block; width: 100%; height: 120px; }














































  .ge-legend {
    display: flex; gap: 6px; margin-top: 8px; padding: 2px 2px 4px;
    overflow-x: auto; overflow-y: hidden;
    scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
  }
  .ge-legend::-webkit-scrollbar { height: 6px; }
  .ge-legend::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }
  .ge-legend::-webkit-scrollbar-track { background: transparent; }
  .ge-legend-chip {
    display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto;
    height: 24px; padding: 0 8px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--bg); font-size: 11px;
    color: var(--text);
  }
  .ge-legend-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; }


  .ge-legend-name {
    display: inline-block; min-width: 0; max-width: 72px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }







  @media (max-width: 950px) and (pointer: coarse) {


    :root { --m-panel: min(42vw, 280px); }







    #stage {
      left: env(safe-area-inset-left, 0px);
      width: calc(100vw - var(--m-panel) - env(safe-area-inset-left, 0px));
    }





    #hud {
      zoom: 1;
      width: auto;
      height: auto;
      background: transparent;
      border-right: none;
      padding: max(6px, env(safe-area-inset-top, 0px)) 8px 6px max(8px, env(safe-area-inset-left, 0px));
      overflow-y: visible;
      flex-direction: row;
      flex-wrap: wrap;
      align-items: center;
      gap: 5px;
      z-index: 10;
      pointer-events: none;
    }


    #hud .label {
      display: none;
    }
    #hud .wave-phase { display: none; }


    #hud .big,
    #hud .dmg,
    #hud .wave {
      background: rgba(6, 8, 15, 0.74);
      border: 1px solid var(--border);
      border-radius: 7px;
      padding: 4px 8px;
      font-size: 14px;
      font-weight: 700;
      line-height: 1;
      backdrop-filter: blur(3px);
      -webkit-backdrop-filter: blur(3px);

      font-variant-numeric: tabular-nums;
    }





    #panel {
      zoom: 1;
      width: var(--m-panel);
      height: 100vh; height: 100svh;

      right: env(safe-area-inset-right, 0px);
      padding-right: env(safe-area-inset-right, 0px);
      padding-top: env(safe-area-inset-top, 0px);
      padding-bottom: env(safe-area-inset-bottom, 0px);
    }




    .rzs-wrap {
      top: calc(12px + env(safe-area-inset-top, 0px));
      right: calc(12px + env(safe-area-inset-right, 0px));
    }




    #nav-cluster {
      left: calc(12px + env(safe-area-inset-left, 0px));
      bottom: calc(34px + env(safe-area-inset-bottom, 0px));
    }
    #login-indicator {
      left: calc(14px + env(safe-area-inset-left, 0px));
      bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }


    .ip-strow {
      min-height: 44px;
    }
    .ip-cbz {
      min-width: 44px;
    }
    .ip-cta,
    .vx-cta,
    .ip-tpl-btn,
    .ip-allmode-toggle,
    .ipq-leave {
      min-height: 44px;
    }














    .nc-item {
      min-height: 44px;
      justify-content: center;
    }
    #ph-close {
      min-width: 44px;
      min-height: 44px;
    }




















    #left-info  { display: none !important; }
    #li-toggle  { display: none !important; }
    #rim-cards  { display: none !important; }
    #settings-bar { display: none !important; }
    #zoom-bar   { display: none !important; }
    #cam-free-toast { display: none !important; }
    #boss-card  { display: none !important; }



  }







  @media (orientation: portrait) and (pointer: coarse) and (max-width: 950px) {

    #mobile-rotate-hint:not(.mrh-dismissed) { display: flex; }



    #mobile-rotate-hint {
      padding: max(24px, env(safe-area-inset-top, 0px))
               max(24px, env(safe-area-inset-right, 0px))
               max(24px, env(safe-area-inset-bottom, 0px))
               max(24px, env(safe-area-inset-left, 0px));
    }


    #stage {
      left: 0;
      top: 0;
      width: 100vw;
      height: 40vh;
    }
    #panel {
      zoom: 1;
      position: fixed;
      right: 0; left: 0; top: 40vh;
      width: 100vw;
      height: 60vh;


      padding-bottom: env(safe-area-inset-bottom, 0px);
      padding-right: 0;
    }

  }







  #mobile-rotate-hint {
    display: none;
    position: fixed; inset: 0;
    background: rgba(2, 3, 8, 0.92);
    flex-direction: column;
    align-items: center; justify-content: center;
    gap: 14px;
    z-index: 500;
    text-align: center;
    padding: 24px;
    pointer-events: auto;
  }

  #mobile-rotate-hint .mrh-phone {
    width: 54px; height: 84px;
    border: 2.5px solid var(--cyan);
    border-radius: 10px;
    position: relative;
    animation: mrh-tilt 2.4s ease-in-out infinite;
    transform-origin: center;
  }
  #mobile-rotate-hint .mrh-phone::after {
    content: "";
    position: absolute; left: 50%; bottom: 6px;
    transform: translateX(-50%);
    width: 14px; height: 2px;
    background: var(--cyan); border-radius: 2px;
  }
  @keyframes mrh-tilt {
    0%, 55% { transform: rotate(0deg); }
    75%, 100% { transform: rotate(-90deg); }
  }
  @media (prefers-reduced-motion: reduce) {
    #mobile-rotate-hint .mrh-phone { animation: none; transform: rotate(-45deg); }
  }

  #mobile-rotate-hint h3 {
    margin: 0; font-size: 15px; color: var(--text);
  }
  #mobile-rotate-hint p {
    margin: 0; font-size: 12px; color: var(--muted);
    max-width: 230px; line-height: 1.5;
  }
  #mobile-rotate-hint .mrh-skip {
    margin-top: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--cyan);
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 12px;
    min-height: 44px;
    cursor: pointer;
    font-family: inherit;
  }












  #ct-tablet-gate {
    position: fixed; inset: 0;
    background: rgba(2, 3, 8, 0.94);
    display: flex;
    align-items: center; justify-content: center;
    z-index: 600;
    padding: 24px;
    padding: max(24px, env(safe-area-inset-top, 0px))
             max(24px, env(safe-area-inset-right, 0px))
             max(24px, env(safe-area-inset-bottom, 0px))
             max(24px, env(safe-area-inset-left, 0px));
  }
  #ct-tablet-gate .ctg-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    max-width: 320px;
  }
  #ct-tablet-gate h2 {
    margin: 0; font-size: 17px; color: var(--text);
  }
  #ct-tablet-gate button {
    width: 100%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--cyan);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    min-height: 44px;
    cursor: pointer;
    font-family: inherit;
  }
  #ct-tablet-gate #ctg-mobile {
    background: var(--cyan);
    color: #06080f;
    border-color: var(--cyan);
    font-weight: 600;
  }