/* Quantum Loot sim · additions only. style.css is untouched; these rules reuse its variables and type scale. */

/* Your claim: pending amount + claim action */
.sim-claim { margin-top: 10px; display: none; }
.sim-claim.on { display: block; }
.sim-claim .cap { letter-spacing: .24em; }
.sim-claim button, .sim-seg button, .sim-act button, .sim-tog button {
  text-transform: uppercase; letter-spacing: .32em; font-size: 10px; color: var(--dim); transition: color .2s, border-color .2s;
}
.sim-claim button { margin-top: 6px; padding: 8px 0 8px 14px; color: #ffd25a; }
.sim-claim button:hover:not(:disabled) { color: var(--w); }
.sim-claim button:disabled { color: var(--dim); cursor: default; }
.sim-claim.ready button { animation: simPulse 1.6s ease-in-out infinite; }
@keyframes simPulse { 50% { opacity: .45; } }

/* Puzzle modal controls */
.sim-ctl { display: grid; grid-template-columns: 110px 1fr; gap: 10px 16px; align-items: center; margin: -8px 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.sim-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.sim-seg button { border: 1px solid rgba(243, 243, 243, .14); padding: 7px 10px; letter-spacing: .2em; }
.sim-seg button:hover { color: var(--w); }
.sim-seg button.on { color: #000; background: var(--w); border-color: var(--w); }
.sim-seg button i { font-style: normal; opacity: .6; margin-left: 8px; letter-spacing: .04em; text-transform: none; }
.sim-act { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; padding-top: 4px; }
.sim-act button { padding: 6px 0; }
.sim-act button:hover { color: var(--w); }
.sim-act .solve { color: #ffd25a; }
.sim-act .reset.arm { color: #ff6b5a; }

/* Treasury: signers, comparison toggle, audit log */
.sim-signers { display: flex; gap: 6px; align-items: center; }
.sim-signers i { width: 7px; height: 7px; border: 1px solid var(--w); display: inline-block; }
.sim-signers i.on { background: var(--w); }
.sim-tog { display: flex; gap: 18px; margin: 18px 0 8px; }
.sim-tog button { padding: 4px 0; border-bottom: 1px solid transparent; }
.sim-tog button.on { color: var(--w); border-color: var(--w); }
.sim-cmp > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 6px 0; border-bottom: 1px solid rgba(243, 243, 243, .06); font-family: var(--m); font-size: 11px; }
.sim-cmp > div > :first-child { color: var(--dim); }
.sim-cmp .bad { color: #ff6b5a; }
.sim-cmp .good { color: #7ff3a0; }
.sim-chain { margin: 18px 0 0; }
#ledger > div.sim-c { color: var(--w); }
#ledger > div > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Payout modal phases */
.sim-ph > div { display: grid; grid-template-columns: 22px 120px 1fr 26px; gap: 10px; padding: 5px 0; font-family: var(--m); font-size: 11px; color: var(--dim); }
.sim-ph > div.on { color: var(--w); }
.sim-ph > div.done > :last-child { color: #7ff3a0; }
.sim-ph > div > :nth-child(3) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sim-ph { margin: 6px 0 14px; }

/* Ticker: layer shift line */
.feed div.sim-shift { color: #9fd8ff; }

/* Layer shift: 1.2s ambient wash over the canvas */
#simWash { position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0; mix-blend-mode: screen; }
#simWash.go { animation: simWash 1.2s ease-out; }
@keyframes simWash { 0% { opacity: 0; } 35% { opacity: .16; } 100% { opacity: 0; } }

/* Hide UI: keep only the restore button */
body.sim-hide #hud > *:not(.btns), body.sim-hide #tags, body.sim-hide #floats { opacity: 0; pointer-events: none; transition: opacity .4s; }
body.sim-hide .btns button:not(#hideBtn) { display: none; }
#hud > *, #tags { transition: opacity .4s; }

/* make room under Your claim while a claim is pending */
body.sim-pending .crew { top: 214px; transition: top .3s; }

/* pool indicator + pinned rank row */
.sim-online { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; letter-spacing: .24em; white-space: nowrap; }
.sim-online i { width: 5px; height: 5px; border-radius: 50%; background: #7ff3a0; box-shadow: 0 0 6px #7ff3a0; animation: simPulse 2s ease-in-out infinite; }
#crew li.sim-pin { border-top: 1px dashed rgba(243, 243, 243, .25); margin-top: 4px; }
.feed div.sim-share .s { color: #7ff3a0; }

/* pool indicator + pinned rank row */
.sim-online { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; letter-spacing: .24em; white-space: nowrap; }
.sim-online i { width: 5px; height: 5px; border-radius: 50%; background: #7ff3a0; box-shadow: 0 0 6px #7ff3a0; animation: simPulse 2s ease-in-out infinite; }
#crew li.sim-pin { border-top: 1px dashed rgba(243, 243, 243, .25); margin-top: 4px; }
.feed div.sim-share .s { color: #7ff3a0; }

/* shorter screens: Top 8 + pinned row + 7 buttons must not collide */
@media (max-height: 880px) {
  #crew li { padding: 4px 0; }
  .btns button { padding-top: 6px; padding-bottom: 6px; }
  body.sim-pending .crew { top: 200px; }
}
.feed div .sim-line { grid-column: 1 / -1; letter-spacing: .08em; }
.sim-est { margin-top: 2px; }
.sim-est { margin-top: 2px; }
.sim-unk { color: var(--w); letter-spacing: .08em; font-size: 11px; padding: 2px 0 4px; }
/* shared pool */
#crew li.sim-player span:first-of-type { color: var(--w); }
.sim-handle { align-items: center; }
.sim-handle input { background: transparent; border: 1px solid rgba(243, 243, 243, .24); color: var(--w); font: inherit; font-size: 11px; letter-spacing: .08em; padding: 6px 8px; width: 170px; outline: none; }
.sim-handle input:focus { border-color: var(--w); }
.sim-handle i { font-style: normal; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.sim-seg button:disabled { opacity: .3; cursor: default; }
/* back to the landing page */
#hud .tl .sim-home { display: inline-block; margin-top: 10px; color: inherit; text-decoration: none; pointer-events: auto; opacity: .55; letter-spacing: .28em; font-size: 9px; }
#hud .tl .sim-home:hover { opacity: 1; color: var(--w); }
