/* extracted to styles/09-multiplayer-lobby.css: lobby-host-options-stage-restyle */

/* ==== CheatMP rebuilt status pane overrides ==== *//* ==== CheatMP rebuilt status pane overrides ==== */
#cheatmp-chat-container {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}
#cheatmp-chat-container .cheatmp-status-card {
  width: 100%;
  min-height: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(25,31,38,0.96), rgba(14,18,23,0.96));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
  padding: 12px;
  color: #e8edf5;
}
#cheatmp-chat-container .cheatmp-status-title,
#cheatmp-chat-container .cheatmp-status-subtitle {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
#cheatmp-chat-container .cheatmp-status-title {
  margin-bottom: 10px;
  color: #ffd966;
}
#cheatmp-chat-container .cheatmp-status-subtitle {
  margin-top: 12px;
  margin-bottom: 6px;
  color: #9bd0ff;
  font-size: 12px;
}
#cheatmp-chat-container .cheatmp-status-grid {
  display: grid;
  gap: 6px;
}
#cheatmp-chat-container .cheatmp-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
}
#cheatmp-chat-container .cheatmp-status-row span {
  color: rgba(232,237,245,0.7);
}
#cheatmp-chat-container .cheatmp-status-copy {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(232,237,245,0.82);
}
#cheatmp-turn-log .cheatmp-log-line {
  padding: 6px 8px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
}
#cheatmp-arena-panel .cheatmp-seat.is-local-seat .seat-name {
  color: #9bd0ff;
}

/* ==== CheatMP layout hotfix: keep side panes narrow and stop table/seats from crushing them ==== */
#cheatmp-arena-panel .cheatmp-arena-wrapper {
  display: grid;
  grid-template-columns: clamp(280px, 22vw, 360px) minmax(0, 1fr) clamp(220px, 18vw, 300px);
  gap: 12px;
  align-items: stretch;
  justify-items: stretch;
  padding: 8px;
}

#cheatmp-arena-panel #cheatmp-chat-container,
#cheatmp-arena-panel #cheatmp-log-container {
  width: auto;
  min-width: 0;
  max-width: 100%;
  height: 100%;
}

#cheatmp-arena-panel #cheatmp-chat-container .cheatmp-status-card {
  overflow: auto;
}

#cheatmp-arena-panel .cheatmp-table-wrap {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  align-self: stretch;
}

#cheatmp-arena-panel .cheatmp-table {
  top: 0;
  width: min(460px, calc(100% - 24px));
  height: min(460px, calc(100% - 24px));
  min-width: 300px;
  min-height: 300px;
}

#cheatmp-arena-panel .cheatmp-seat {
  width: 230px;
  height: 230px;
}

#cheatmp-arena-panel #cheatmp-seat-1 { left: 50%; top: 90%; }
#cheatmp-arena-panel #cheatmp-seat-2 { left: 77%; top: 76%; }
#cheatmp-arena-panel #cheatmp-seat-3 { left: 88%; top: 50%; }
#cheatmp-arena-panel #cheatmp-seat-4 { left: 77%; top: 24%; }
#cheatmp-arena-panel #cheatmp-seat-5 { left: 50%; top: 10%; }
#cheatmp-arena-panel #cheatmp-seat-6 { left: 23%; top: 24%; }
#cheatmp-arena-panel #cheatmp-seat-7 { left: 12%; top: 50%; }
#cheatmp-arena-panel #cheatmp-seat-8 { left: 23%; top: 76%; }

#cheatmp-arena-panel .seat-chao {
  height: 155px;
}

#cheatmp-arena-panel .seat-chao-scale {
  transform: translateX(-50%) scale(1.6);
}

#cheatmp-arena-panel .seat-name {
  top: 48px;
  font-size: 15px;
  line-height: 1.1;
  padding: 0 8px;
}

#cheatmp-arena-panel .seat-cardcount {
  top: 76px;
  font-size: 14px;
}

#cheatmp-arena-panel .cheatmp-side.cheatmp-log {
  min-width: 0;
}

#cheatmp-arena-panel .cheatmp-log-title {
  font-size: 20px;
}

#cheatmp-arena-panel #cheatmp-turn-log {
  font-size: 14px;
  overflow: auto;
}

#cheatmp-arena-panel #cheatmp-turn-log .cheatmp-log-line {
  line-height: 1.25;
}

#cheatmp-arena-panel .cheatmp-status-title {
  font-size: 16px;
}

#cheatmp-arena-panel .cheatmp-status-row,
#cheatmp-arena-panel .cheatmp-status-copy {
  font-size: 13px;
}

@media (max-width: 1500px) {
  #cheatmp-arena-panel .cheatmp-arena-wrapper {
    grid-template-columns: clamp(240px, 21vw, 320px) minmax(0, 1fr) clamp(200px, 17vw, 260px);
  }
  #cheatmp-arena-panel .cheatmp-table {
    width: min(400px, calc(100% - 16px));
    height: min(400px, calc(100% - 16px));
    min-width: 260px;
    min-height: 260px;
  }
  #cheatmp-arena-panel .cheatmp-seat {
    width: 190px;
    height: 190px;
  }
  #cheatmp-arena-panel .seat-chao {
    height: 128px;
  }
  #cheatmp-arena-panel .seat-chao-scale {
    transform: translateX(-50%) scale(1.35);
  }
  #cheatmp-arena-panel .seat-name {
    top: 36px;
    font-size: 13px;
  }
  #cheatmp-arena-panel .seat-cardcount {
    top: 60px;
    font-size: 13px;
  }
}

/* ==== Play Cards submode controls ==== */
.playcards-submode-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.playcards-submode-btn,
.playcards-start-btn,
.playcards-target-btn {
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(28,39,54,0.96), rgba(16,22,31,0.96));
  color: #e9eef5;
  border-radius: 10px;
  min-height: 34px;
  padding: 6px 10px;
  font: inherit;
  cursor: pointer;
}
.playcards-submode-btn.active,
.playcards-target-btn.active {
  border-color: rgba(255,217,102,0.9);
  box-shadow: 0 0 0 1px rgba(255,217,102,0.45) inset;
}
.playcards-submode-btn:disabled,
.playcards-target-btn:disabled,
.playcards-start-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.playcards-start-btn {
  width: 100%;
  background: linear-gradient(180deg, rgba(46,121,59,0.98), rgba(31,88,43,0.98));
  border-color: rgba(132,255,162,0.35);
  font-weight: 700;
}
.playcards-wait-copy {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  color: #cbd6e2;
  font-size: 12px;
  line-height: 1.4;
}
.playcards-setup-actions {
  margin-bottom: 10px;
}
.playcards-target-picker {
  margin: 10px 0 12px;
}
.playcards-target-title {
  color: #9db0c4;
  font-size: 11px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.playcards-target-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
#cheatmp-arena-panel .cheatmp-seat.is-target-seat {
  outline: 2px solid rgba(255,217,102,0.9);
  outline-offset: 4px;
}

/* ===== Patch: linked focus/stats/equip shell ===== */
#stats-panel .stats-topbar{
  display:grid;
  grid-template-columns: 82px 1fr 82px;
  gap:8px;
  align-items:center;
  min-height:34px;
  margin: 2px 0 10px;
}
#stats-panel .stats-topbar h3,
#stats-panel .stats-page-label{
  margin:0;
  text-align:center;
  line-height:1.2;
  color:#fff;
  font-weight:700;
  text-shadow:1px 1px 0 #000;
}
#stats-panel .stats-topbar-spacer{ width:82px; }
#stats-panel #stats-next,
#stats-panel #stats-open-equip,
#stats-panel #stats-back,
#stats-panel #stats-equip-back,
#stats-panel #edit-name,
#stats-panel #select-title-btn,
#stats-panel .stats-debug-toggle{
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.08);
  color:#fff;
  border-radius:8px;
  min-height:32px;
  padding:6px 8px;
  font-weight:700;
}
#stats-panel #edit-name{
  position:static !important;
  transform:none !important;
  width:auto !important;
  height:32px !important;
}
#stats-panel .stats-page2-bottom{
  display:flex;
  justify-content:center;
  margin-top:12px;
}
#stats-panel .paperdoll-embedded-header{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:8px;
}
#stats-panel .paperdoll-focused-name{
  text-align:center;
  font-size:16px;
  font-weight:700;
  color:#ffd60a;
  text-shadow:1px 1px 0 #000;
}
#stats-panel .paperdoll-title-row{
  display:grid;
  grid-template-columns: 1fr auto;
  align-items:center;
  gap:8px;
}
#stats-panel #paperdoll-preview{
  width:144px;
  height:144px;
  margin:0 auto 8px;
}
#stats-panel #paperdoll-slots{
  gap:8px;
  flex-wrap:wrap;
  justify-content:center;
}
#stats-panel #paperdoll-inventory{
  margin-top:8px;
  max-height:190px;
  overflow:auto;
}
#stats-panel #paperdoll-item-list.grid{
  grid-template-columns: repeat(auto-fill, 48px);
  justify-content:center;
}
#stats-panel .panel-body.stats-panel-body-linked{
  overflow:auto;
}
#stats-panel .stat-block{ margin-bottom:8px; }
#stats-panel .stats-subscription-front{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:0 0 10px;
  padding:6px 8px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:10px;
  background:rgba(0,0,0,.18);
}
#stats-panel .stats-subscription-front[data-category="hero"]{
  box-shadow:inset 0 0 0 1px rgba(80,160,255,.22);
}
#stats-panel .stats-subscription-front[data-category="dark"]{
  box-shadow:inset 0 0 0 1px rgba(220,80,120,.2);
}
#stats-panel .stats-subscription-front-icon{
  width:18px;
  height:18px;
  image-rendering:pixelated;
  flex:0 0 18px;
}
#stats-panel .stats-subscription-front-icon.hidden{
  display:none;
}
#stats-panel .stats-subscription-front-text{
  display:flex;
  flex-direction:column;
  align-items:center;
  line-height:1.1;
}
#stats-panel .stats-subscription-front-label{
  font-size:11px;
  opacity:.85;
}
#stats-panel .stats-subscription-front-name{
  font-size:14px;
  font-weight:700;
  color:#fff;
}
#stats-panel .paperdoll-legacy-note{
  text-align:center;
  opacity:.85;
}

body.hide-chao-titles .chao-title {
  display: none !important;
}

body.hide-chao-names .chao-label {
  display: none !important;
}

/* ===== Stats MORE page: move [D] to bottom-right, away from Edit Name ===== */
#stats-panel #stats-page2{
  position: relative;
  padding-bottom: 44px;
}
#stats-panel #stats-page2 .stats-page2-bottom{
  position: absolute;
  right: 0;
  bottom: 0;
  left: auto;
  display: flex;
  justify-content: flex-end;
  margin-top: 0;
}
#stats-panel #stats-page2 .stats-debug-toggle{
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
}

#tree-shake-panel > .panel-body.tree-shake-body,
#repair-panel > .panel-body.repair-panel-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
}

/* extracted to styles/14-trail.css: lines 11921-12044 */

.ui-keybinds-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:10px;align-items:start}
.ui-keybinds-section{border:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.14);border-radius:10px;padding:10px 12px}
.ui-keybinds-list{display:grid;gap:8px}
.ui-keybind-row{display:grid;grid-template-columns:120px 1fr;gap:10px;align-items:start}
.ui-keybind-key{display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:3px 8px;border-radius:8px;background:rgba(255,255,255,.12);font-weight:700;text-align:center}
.ui-keybind-desc{line-height:1.25}
@media (max-width: 1100px){.ui-keybinds-grid{grid-template-columns:1fr}.ui-keybind-row{grid-template-columns:100px 1fr}}

/* Sidebar/hub hotkey badge ownership lives in 04-sidebar-toolbar-cursor.css. */

