* {
  box-sizing:border-box
}
body {
  margin:0;
  background:#202124;
  color:#f5f1e6;
  font:14px 'Segoe UI',sans-serif
}
main {
  max-width:1300px;
  margin:auto;
  padding:32px 25px
}
header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  flex-wrap:wrap
}
.eyebrow {
  color:#e6b84c;
  letter-spacing:3px;
  font-size:11px;
  font-weight:800
}
h1 {
  font-size:30px;
  margin:8px 0
}
h2 {
  font-size:18px;
  margin:0 0 18px
}
h3 {
  font-size:13px;
  color:#c0b9a6;
  margin:20px 0 12px
}
p {
  color:#c0b9a6;
  line-height:1.6
}
a {
  color:#f0cc70;
  text-decoration:none
}
a:hover {
  text-decoration:underline
}
nav {
  display:flex;
  gap:16px;
  flex-wrap:wrap
}
button,input,select {
  font:inherit;
  border-radius:8px;
  padding:10px 12px;
  border:1px solid #62583e;
  background:#1b1c1e;
  color:#f5f1e6
}
button {
  cursor:pointer;
  background:#3b3b3c;
  font-weight:700
}
button.primary {
  background:#e6b84c;
  color:#241b0d;
  border-color:#e6b84c
}
button:disabled {
  opacity:.45;
  cursor:wait
}
input:focus,select:focus,button:focus-visible {
  outline:2px solid #e6b84c
}
label {
  font-size:12px;
  color:#c0b9a6;
  display:block;
  margin-bottom:7px
}
.card {
  background:#292a2d;
  border:1px solid #514b3b;
  border-radius:15px;
  padding:22px
}
.top {
  margin:22px 0;
  display:flex;
  align-items:end;
  gap:12px;
  flex-wrap:wrap
}
.top .field {
  flex:1;
  min-width:220px
}
.top input {
  width:100%
}
.layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 355px;
  gap:22px
}
.tabs {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:18px
}
.tabs button.selected {
  border-color:#e6b84c;
  color:#f0cc70;
  background:#4a402a
}
.tabs small {
  color:#d8b65e;
  margin-left:8px
}
.title-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  flex-wrap:wrap
}
.muted {
  color:#b6af9d;
  font-size:12px
}
.badge {
  display:inline-block;
  border-radius:20px;
  background:#3b3320;
  color:#f0cc70;
  padding:5px 10px;
  font-size:11px
}
.stats {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin:22px 0
}
.stat {
  border:1px solid #514b3b;
  padding:14px 10px;
  border-radius:9px;
  color:#a7b7ce;
  font-size:11px;
  text-align:center
}
.stat strong {
  display:block;
  font-size:23px;
  color:#f5f7ff;
  margin-top:6px
}
.toolbar {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:15px 0
}
.danger {
  color:#ffa0ac;
  background:#382330
}
.message {
  min-height:25px;
  padding:0 2px 15px;
  line-height:1.5;
  color:#f0cc70;
  overflow-wrap:anywhere
}
.archive-row {
  margin:20px 0;
  display:flex;
  gap:10px;
  align-items:end
}
.archive-row>div {
  flex:1
}
select {
  width:100%
}
.battles {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px
}
.grid {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:6px
}
.tile {
  border:1px solid #3dd5a62b;
  border-radius:7px;
  background:#29271f;
  padding:9px 2px;
  text-align:center;
  color:#5de7af;
  font-size:17px;
  font-weight:800
}
.tile.def {
  color:#f0cc70;
  background:#392f20;
  border-color:#e8b6582b
}
.tile small {
  display:block;
  font-size:9px;
  color:#b8c7d8;
  font-weight:400;
  margin-top:3px
}
.empty {
  color:#899bb4;
  font-size:12px;
  padding:18px 0;
  line-height:1.6
}
.preview-box {
  position:relative;
  height:160px;
  overflow:hidden;
  background:linear-gradient(145deg,#34312b,#0b1320);
  border-radius:9px;
  padding:10px
}
.preview-box iframe {
  position:absolute;
  left:10px;
  top:10px;
  display:block;
  border:0;
  width:315px;
  height:1032px;
  background:transparent;
  transform-origin:top left
}
#liveLink {
  width:100%;
  font-size:11px
}
.note {
  font-size:12px;
  line-height:1.6;
  color:#b6af9d
}
table {
  width:100%;
  border-collapse:collapse;
  margin-top:14px;
  font-size:12px
}
th,td {
  padding:12px 8px;
  border-bottom:1px solid #514b3b;
  text-align:right
}
th:first-child,td:first-child {
  text-align:left
}
th {
  color:#9eafc6;
  font-weight:600
}
details {
  margin-top:22px
}
summary {
  cursor:pointer;
  color:#b6c7dd
}
.footer {
  font-size:12px;
  color:#8f9fb7;
  margin-top:24px
}
@media(max-width:950px) {
  .layout {
    grid-template-columns:1fr
  }
  .stats {
    grid-template-columns:repeat(2,1fr)
  }
}
@media(max-width:500px) {
  main {
    padding:20px 12px
  }
  .battles {
    grid-template-columns:1fr
  }
  .card {
    padding:16px
  }
  .grid {
    grid-template-columns:repeat(5,1fr)
  }
}
.live-link-label {
  margin-top:20px
}
