.rb-deck-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.rb-deck-stage,
.rb-deck-readout { border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, rgba(255,255,255,.035), transparent 44%), var(--rb-panel, #141419); box-shadow: 0 18px 42px rgba(0,0,0,.18); }
.rb-deck-stage { min-width: 0; padding: 24px; }
.rb-deck-stage-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.rb-deck-stage-head h2 { margin: 0; font-size: 29px; }
.rb-deck-count { flex: 0 0 auto; color: var(--accent); font: 700 22px 'IBM Plex Mono', monospace; }
.rb-deck-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.rb-deck-actions button { cursor: pointer; padding: 8px 11px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.018); color: var(--muted); font: 600 9px 'IBM Plex Mono', monospace; letter-spacing: .05em; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.rb-deck-actions button:hover { color: var(--text); border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.09); transform: translateY(-1px); }
.rb-deck-actions button:last-child { margin-left: auto; color: #ff8b82; border-color: rgba(230,58,46,.28); }

.rb-deck-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin-top: 23px; }
.rb-deck-slot { position: relative; min-width: 0; aspect-ratio: 4 / 5; overflow: hidden; border: 1px dashed rgba(255,255,255,.19); border-radius: 8px; background: rgba(255,255,255,.025); transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.rb-deck-slot:not(.rb-deck-slot--empty) { border-style: solid; border-color: rgba(255,255,255,.14); animation: rb-slot-in .28s cubic-bezier(.22,1,.36,1) both; }
@keyframes rb-slot-in { from { opacity: 0; transform: scale(.96) translateY(4px); } to { opacity: 1; transform: none; } }
.rb-deck-slot--hero { border-color: color-mix(in srgb, var(--accent) 66%, transparent); background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%); }
.rb-deck-slot--hero::before { content: '♛'; position: absolute; z-index: 2; top: 7px; left: 8px; display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(126,25,18,.88); color: white; font-size: 14px; }
.rb-deck-slot--empty.rb-deck-slot--hero::before { opacity: .38; }
.rb-deck-slot > span { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; color: var(--faint); text-align: center; font: 9px/1.45 'IBM Plex Mono', monospace; letter-spacing: .05em; }
.rb-deck-slot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rb-deck-slot > b { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; overflow: hidden; padding: 24px 8px 8px; background: linear-gradient(transparent, rgba(6,6,9,.94) 72%); color: white; font-size: 10px; line-height: 1.12; text-overflow: ellipsis; white-space: nowrap; }
.rb-deck-slot button { position: absolute; z-index: 4; top: 6px; right: 6px; display: grid; width: 26px; height: 26px; place-items: center; cursor: pointer; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(0,0,0,.78); color: white; font-size: 16px; line-height: 1; transition: transform .2s ease, background .2s ease; }
.rb-deck-slot button:hover { transform: scale(1.08); background: var(--accent); }

.rb-deck-readout { position: sticky; top: calc(var(--ttg-nav-height, 69px) + 68px); min-width: 0; padding: 21px; }
.rb-readout-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rb-deck-readout .mono { margin: 0; font-size: 9px; letter-spacing: .16em; }
.rb-deck-readout > h2 { margin-top: 17px; font-size: 28px; }
.rb-deck-state { padding: 5px 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 99px; color: var(--faint); font: normal 700 8px 'IBM Plex Mono', monospace; letter-spacing: .08em; }
.rb-deck-state.is-ready { border-color: rgba(70,166,60,.44); background: rgba(70,166,60,.09); color: #8ee785; }
.rb-readout-block { margin-top: 22px; }
.rb-readout-block > h3 { margin-bottom: 7px; color: var(--faint); font: 600 9px 'IBM Plex Mono', monospace; letter-spacing: .1em; text-transform: uppercase; }
.rb-readout-empty { margin: 10px 0 0; color: var(--faint); font-size: 12px; line-height: 1.45; }
.rb-trait-readout { padding: 12px 0; border-top: 1px solid var(--line); }
.rb-trait-readout h3 { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-size: 12px; }
.rb-trait-readout h3 span { color: var(--muted); font: 500 10px 'IBM Plex Mono', monospace; }
.rb-trait-readout h3 b { text-align: right; font-size: 10px; }
.rb-trait-readout small { display: block; margin-top: 6px; color: var(--faint); font-size: 9px; }
.rb-trait-effect { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.rb-meter { height: 5px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.08); }
.rb-meter i { display: block; width: var(--meter, 0%); height: 100%; border-radius: inherit; background: var(--meter-color, var(--accent)); box-shadow: 0 0 12px var(--meter-color, var(--accent)); transition: width .35s cubic-bezier(.22,1,.36,1); }

.rb-deck-notice { margin-top: 18px; }
.rb-deck-collection { margin-top: 42px; padding-top: 32px; border-top: 1px solid var(--line); }
.rb-deck-collection .rb-catalog-tools { grid-template-columns: minmax(260px, 520px); }
.rb-deck-collection .rb-card-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.rb-card-tile--compact .rb-card-identity { min-height: 48px; }
.rb-card-tile--compact .rb-card-identity b { font-size: 11px; }
.rb-card-tile--compact .rb-card-traits { min-height: 31px; gap: 3px; padding: 0 8px 9px; }
.rb-card-tile--compact .rb-card-traits .rb-trait { padding: 4px 5px; font-size: 7px; letter-spacing: .035em; }

@media (max-width: 1120px) {
  .rb-deck-collection .rb-card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .rb-deck-layout { grid-template-columns: 1fr; }
  .rb-deck-readout { position: static; }
}
@media (max-width: 700px) {
  .rb-deck-stage { padding: 17px; }
  .rb-deck-stage-head h2 { font-size: 24px; }
  .rb-deck-actions { flex-wrap: nowrap; margin-inline: -17px; padding: 1px 17px 4px; overflow-x: auto; scrollbar-width: none; }
  .rb-deck-actions::-webkit-scrollbar { display: none; }
  .rb-deck-actions button:last-child { margin-left: 0; }
  .rb-deck-collection .rb-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .rb-deck-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-deck-collection .rb-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .rb-deck-actions button, .rb-deck-slot, .rb-deck-slot button, .rb-meter i { transition: none; }
  .rb-deck-slot:not(.rb-deck-slot--empty) { animation: none; }
}
