* {
  box-sizing:border-box
}
body {
  margin:0;
  background:#202124;
  color:#f5f1e6;
  font:15px 'Segoe UI',sans-serif
}
button,input,select {
  font:inherit
}
main {
  max-width:1180px;
  margin:auto;
  padding:44px 28px
}
.eyebrow {
  color:#e6b84c;
  letter-spacing:3px;
  font-size:11px;
  font-weight:800
}
h1 {
  font-size:42px;
  margin:12px 0
}
p {
  color:#a1acc1;
  line-height:1.6
}
.layout {
  display:grid;
  grid-template-columns:minmax(360px,440px) minmax(0,1fr);
  gap:32px;
  margin-top:32px;
  align-items:start
}
.stage {
  position:sticky;
  top:20px;
  max-height:calc(100vh - 40px);
  overflow:auto;
  scrollbar-width:thin;
  scrollbar-color:#354259 transparent
}
.panel {
  background:#292a2d;
  border:1px solid #514b3b;
  border-radius:18px;
  padding:25px
}
h2 {
  font-size:18px;
  margin:0 0 22px
}
label {
  display:block;
  color:#b4bfd3;
  margin:20px 0 8px;
  font-size:13px
}
input,select {
  width:100%;
  background:#1b1c1e;
  border:1px solid #62583e;
  color:#fff8e8;
  padding:12px;
  border-radius:8px
}
input:focus,select:focus {
  outline:2px solid #e6b84c
}
button {
  cursor:pointer;
  border:0;
  border-radius:8px;
  padding:12px 16px;
  background:#e6b84c;
  color:#21190f;
  font-weight:700;
  margin-top:14px
}
.secondary {
  background:#3b3b3c;
  color:#f5f1e6
}
button:disabled {
  opacity:.5;
  cursor:wait
}
.row {
  display:flex;
  gap:10px
}
.row button {
  flex:1
}
.stage {
  min-height:590px;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding:40px 15px;
  background-color:#101723;
  background-image:linear-gradient(45deg,#ffffff04 25%,transparent 25%,transparent 75%,#ffffff04 75%),linear-gradient(45deg,#ffffff04 25%,transparent 25%,transparent 75%,#ffffff04 75%);
  background-size:24px 24px;
  background-position:0 0,12px 12px;
  border:1px solid #514b3b;
  border-radius:18px
}
.stage.preview-graphite,.stage.preview-gray,.stage.preview-silver,.stage.preview-warmgray {
  background-color:#0f1012;
  background-image:linear-gradient(45deg,#191a1d 25%,transparent 25%,transparent 75%,#191a1d 75%),linear-gradient(45deg,#191a1d 25%,transparent 25%,transparent 75%,#191a1d 75%)
}
.tracker {
  --accent:#e6b84c;
  width:340px;
  background:linear-gradient(145deg,#292a2d,#171819);
  border:2px solid var(--accent);
  border-radius:14px;
  padding:18px;
  box-shadow:0 0 35px #0008;
  overflow:hidden
}
.tracker.red {
  --accent:#ef605c
}
.brand {
  font-weight:900;
  font-size:23px;
  color:var(--accent);
  letter-spacing:2px;
  text-align:center
}
.sub {
  text-align:center;
  font-size:10px;
  color:#929caf;
  letter-spacing:4px;
  margin:4px 0 20px
}
.player {
  font-size:21px;
  font-weight:800;
  overflow-wrap:anywhere
}
.tag {
  color:#939fb5;
  font-size:12px;
  margin-top:4px
}
.totals {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin:18px 0
}
.stat {
  background:#ffffff06;
  border-radius:7px;
  padding:10px;
  font-size:11px;
  color:#a4aec0
}
.stat strong {
  display:block;
  color:#fff;
  font-size:23px;
  margin-top:4px
}
.columns {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px
}
.caption {
  font-size:11px;
  letter-spacing:1px;
  font-weight:800;
  margin-bottom:10px
}
.green {
  color:#48dfa0
}
.negative {
  color:#ff7179
}
.battle {
  background:#ffffff05;
  border:1px solid #ffffff08;
  border-radius:6px;
  margin:6px 0;
  padding:8px;
  text-align:center;
  font-size:18px;
  font-weight:800;
  animation:enter .4s ease
}
.battle small {
  display:block;
  font-size:10px;
  font-weight:400;
  color:#a6b1c6;
  margin-top:3px
}
.gridmode .columns>div:first-child .entries {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:4px
}
.gridmode .columns {
  grid-template-columns:1fr
}
.gridmode .battle {
  font-size:16px
}
.gridmode .columns>div:last-child .entries {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:4px
}
.status {
  font-size:11px;
  color:#aab4c5;
  margin-top:17px;
  line-height:1.5;
  overflow-wrap:anywhere
}
.demo {
  color:#e6b84c
}
.empty {
  font-size:12px;
  color:#8590a4;
  padding:15px 0;
  text-align:center
}
.credit {
  font-size:9px;
  color:#707e93;
  text-align:center;
  margin-top:15px
}
#message {
  font-size:13px;
  min-height:42px;
  margin-top:15px;
  line-height:1.5;
  color:#bcc8dc
}
#link {
  font-size:12px
}
details {
  margin-top:23px;
  color:#a1acc1;
  font-size:13px;
  line-height:1.7
}
summary {
  cursor:pointer;
  color:#edf1fa
}
footer {
  font-size:12px;
  margin-top:24px;
  color:#748199
}
.overlay {
  background:transparent!important
}
.overlay main {
  padding:0;
  margin:0;
  max-width:none
}
.overlay .setup,.overlay header,.overlay footer {
  display:none
}
.overlay .layout {
  display:block;
  margin:0
}
.overlay .stage {
  display:block;
  background:none;
  border:0;
  padding:12px;
  min-height:0
}
.overlay .tracker {
  box-shadow:none
}
@keyframes enter {
  from {
    opacity:0;
    transform:translateY(5px)
  }
  to {
    opacity:1;
    transform:none
  }
}
@media(max-width:800px) {
  .layout {
    grid-template-columns:1fr
  }
  .stage {
    position:relative;
    top:auto;
    max-height:none;
    overflow:visible;
    grid-row:1;
    min-height:500px
  }
  h1 {
    font-size:32px
  }
  main {
    padding:25px 16px
  }
}
.compact-widget {
  width:400px;
  font-family:'Segoe UI',sans-serif;
  font-weight:800;
  color:#fff;
  text-shadow:0 1px 3px #000b
}
.compact-head {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  height:43px;
  width:100%;
  font-size:23px
}
.compact-head img {
  width:35px;
  height:35px;
  object-fit:contain
}
.compact-name {
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  min-width:0;
  max-width:100%;
  text-align:center;
  flex-shrink:1
}
.compact-stats {
  display:grid;
  grid-template-columns:1fr .65fr 1.25fr 1.25fr;
  gap:6px;
  margin:4px 0 9px
}
.compact-pill {
  background:rgba(19,16,30,.83);
  border:1px solid #ffffff18;
  border-radius:8px;
  padding:6px 3px;
  font-size:15px;
  text-align:center
}
.compact-pill.rank {
  color:#ff5682
}
.compact-pill.attack-avg {
  color:#36ece4
}
.compact-pill.defense-avg {
  color:#ffd55a
}
.compact-bar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:rgba(28,26,39,.65);
  padding:8px 11px;
  border-radius:7px;
  margin:9px 0 5px;
  font-size:15px
}
.compact-bar span:first-child {
  letter-spacing:1px
}
.compact-grid {
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:5px
}
.compact-cell {
  height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  border-radius:9px;
  background:rgba(30,27,39,.42);
  border:1px solid rgba(255,255,255,.12);
  font-size:19px
}
.compact-cell.filled {
  color:#37f4a5;
  border-color:#3cf5a347;
  background:rgba(10,47,39,.65)
}
.compact-cell.defense {
  color:#ffd55a;
  background:rgba(51,37,24,.7);
  border-color:#ffd55a35
}
.compact-cell.zero {
  color:#ff64b9;
  background:rgba(52,19,44,.65)
}
.compact-cell small {
  font-size:10px;
  color:#e5e7f2;
  margin-top:1px;
  white-space:nowrap;
  flex-shrink:0;
  line-height:1.25
}
.compact-note {
  font-size:10px;
  font-weight:500;
  color:#f2bd72;
  margin-top:8px
}
.compact-widget[hidden],.tracker[hidden] {
  display:none
}
.overlay.compact-page .stage {
  padding:8px
}
.stage:has(.compact-widget:not([hidden])) {
  min-width:420px
}
@media(max-width:460px) {
  .stage:has(.compact-widget:not([hidden])) {
    min-width:0;
    padding:8px
  }
  .compact-widget {
    width:100%;
    max-width:400px
  }
  .compact-head {
    font-size:20px
  }
}
.sidebar-page .compact-widget {
  width:315px;
  max-width:315px;
  flex-shrink:0
}
.sidebar-page .compact-head {
  font-size:19px;
  gap:6px;
  height:38px
}
.sidebar-page .compact-head img {
  width:27px;
  height:27px
}
.sidebar-page .compact-stats {
  gap:4px;
  margin:4px 0 10px;
  grid-template-columns:1fr .65fr 1.2fr 1.2fr
}
.sidebar-page .compact-pill {
  font-size:11px;
  padding:7px 2px;
  border-radius:6px
}
.sidebar-page .compact-grid {
  gap:4px;
  grid-template-columns:repeat(6,minmax(0,1fr))
}
.sidebar-page .compact-cell {
  height:41px;
  border-radius:7px;
  font-size:17px
}
.sidebar-page .compact-cell small {
  font-size:9px;
  letter-spacing:-.15px;
  white-space:nowrap
}
.sidebar-page .compact-bar {
  font-size:12px;
  padding:8px;
  margin-top:12px
}
.sidebar-page .legend-one .compact-grid {
  grid-template-columns:repeat(4,minmax(0,1fr))
}
.sidebar-page .legend-one .compact-cell {
  height:48px;
  font-size:20px
}
.sidebar-page .legend-one .compact-cell small {
  font-size:10px
}
.overlay.sidebar-page .stage {
  padding:0;
  min-width:0
}
.overlay.sidebar-page {
  width:315px;
  overflow-x:hidden
}
.sidebar-page .stage:has(.compact-widget:not([hidden])) {
  min-width:0
}
.sidebar-page .compact-note {
  font-size:10px;
  line-height:1.4
}
.wide-page .compact-widget {
  width:400px;
  max-width:400px;
  flex-shrink:0
}
.overlay.wide-page {
  width:400px;
  overflow-x:hidden
}
.overlay.wide-page .stage {
  padding:0;
  min-width:0
}
.wide-page .compact-cell small {
  font-size:11px;
  white-space:nowrap
}
.wide-page .compact-head {
  font-size:23px
}
.wide-page .compact-grid {
  grid-template-columns:repeat(6,minmax(0,1fr))
}
.wide-page .legend-one .compact-grid {
  grid-template-columns:repeat(4,minmax(0,1fr))
}
.wide-page .stage:has(.compact-widget:not([hidden])) {
  min-width:0
}
html:has(body.overlay) {
  width:100%;
  height:100%;
  overflow:hidden
}
.overlay {
  max-width:100%;
  overflow:hidden!important
}
.overlay.wide-page,.overlay.sidebar-page {
  width:100%;
  max-width:100%
}
.overlay.wide-page .compact-widget {
  width:100%;
  max-width:400px
}
.overlay.sidebar-page .compact-widget {
  width:100%;
  max-width:315px
}
.overlay .stage {
  max-width:100%;
  box-sizing:border-box
}
.overlay .compact-grid {
  min-width:0
}
.overlay .compact-cell {
  min-width:0
}
.position-controls {
  margin:10px 0 18px;
  padding:12px;
  border:1px solid #514b3b;
  border-radius:10px;
  background:#242527
}
.position-controls p {
  margin:0 0 8px;
  color:#e6b84c;
  font-size:13px;
  font-weight:700
}
.position-controls label {
  display:flex;
  justify-content:space-between;
  gap:8px;
  margin:10px 0 2px
}
.position-controls output {
  color:#e6b84c;
  font-variant-numeric:tabular-nums
}
.position-controls input[type=range] {
  padding:0;
  background:transparent;
  border:0;
  accent-color:#e6b84c
}
.position-controls small {
  display:block;
  color:#aaa797;
  font-size:11px;
  line-height:1.5;
  margin-top:8px
}
.small-note {
  font-size:12px
}
.small-link {
  font-size:13px
}
a.gold-link {
  color:#e6b84c
}
