:root {
  --bg: #262626; --blk: rgba(58, 58, 58, .92); --hd: #474747; --ln: #7a7a7a;
  --tx: #e8e8e8; --mu: #a9a9a9; --lk: #5fa8e0; --ok: #7ac143; --bad: #e06a5f; --gold: #f2c14e;
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--tx); font: 13px/1.5 Verdana, "Malgun Gothic", sans-serif;
  background: #161616 url(img/bg.jpg) center top / cover fixed;
}
a { color: var(--lk); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 980px; margin: 0 auto; background: rgba(30, 30, 30, .55); border-left: 1px solid #444; border-right: 1px solid #444; min-height: 100vh; }

.top { display: flex; flex-wrap: wrap; background: #151515; border-bottom: 2px solid #000; }
.top a { color: #fff; padding: 10px 16px; line-height: 1.2; font-size: 15px; }
.top a small { display: block; font-size: 11px; color: var(--mu); }
.top a.on, .top a:hover { background: #4a4a4a; text-decoration: none; }

.banner {
  position: relative; height: 150px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; background: #333 url(img/banner.jpg) center / cover; border-bottom: 4px solid #6f7d38;
}
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.65), rgba(0,0,0,.1) 60%, rgba(0,0,0,.45)); }
.logo { position: relative; font: 42px "Russo One", Impact, sans-serif; font-style: italic; letter-spacing: 1px; text-shadow: 3px 3px 0 #0b2e5a, -1px -1px 0 #fff; }
.logo:hover { text-decoration: none; }
.logo .b1 { color: #fff; }
.logo .b2 { color: #39a7ff; }
.bots { position: relative; display: flex; gap: 6px; }
.bots img { width: 115px; height: 56px; border: 1px solid #555; border-radius: 6px; background: #ddd; }

.infobar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 8px 16px; background: #303030; border-bottom: 1px solid #555; }
.search { display: flex; }
input, button {
  height: 26px; background: #1d1d1d; border: 1px solid #666; color: #ddd; border-radius: 3px; padding: 0 8px; font: inherit;
}
.search input { width: 170px; border-radius: 3px 0 0 3px; }
.search button { border-radius: 0 3px 3px 0; cursor: pointer; }
button { cursor: pointer; background: #333; }
button:hover { background: #4a4a4a; }

main { padding: 12px; }
.blk { background: var(--blk); border: 1px solid var(--ln); margin-bottom: 10px; }
.blk h4 { margin: 0; padding: 6px 9px; background: var(--hd); border-bottom: 1px solid var(--ln); font-weight: 400; font-size: 15px; color: #fff; }
.blk .c { padding: 9px; }
.cols3 { display: grid; grid-template-columns: 170px minmax(0, 1fr) 190px; gap: 10px; }
.cols2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.mu { color: var(--mu); }
.ok { color: var(--ok); }
.bad { color: var(--bad); }
.big { font-size: 15px; }
.center { text-align: center; }
.r { text-align: right; }
.dim { color: #666; }
.btn { display: inline-block; margin-top: 4px; padding: 7px 16px; background: #2f7fb5; border: 1px solid var(--lk); border-radius: 3px; color: #fff; }
.btn:hover { background: #3a92cc; text-decoration: none; }
.status { display: grid; grid-template-columns: 1fr 1fr; text-align: center; padding: 16px 8px !important; }
.notice { padding: 4px 0; border-bottom: 1px solid #4d4d4d; }
.notice:last-child { border-bottom: 0; }
.notice summary { cursor: pointer; color: var(--lk); }
.notice p { margin: 6px 0 2px; color: var(--tx); white-space: pre-line; }
.tag { display: inline-block; padding: 0 6px; border: 1px solid #666; border-radius: 3px; font-size: 11px; color: var(--mu); }
table { width: 100%; border-collapse: collapse; }
td, th { padding: 3px 6px; text-align: left; }
th { font-weight: 400; color: #fff; }
th.r, td.r { text-align: right; }
.mini td { padding: 2px 3px; }

.crumb { margin: 0 0 8px; font-size: 11px; }
.tabs { text-align: center; margin: 4px 0 10px; font-size: 14px; }
.tabs b { color: #fff; }
.rank-art { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 6px 0 10px; }
.rank-art img { width: 92px; height: 45px; border-radius: 6px; border: 1px solid #555; background: #ddd; }
.flag { margin-left: 8px; padding: 10px 14px; background: #1d1d1d; border: 2px solid #8a8a8a; font: 15px "Russo One", Impact, sans-serif; color: #cfe8b8; transform: rotate(-2deg); }
.find { text-align: center; margin-bottom: 14px; }
.find input { width: 180px; }
.frame { position: relative; max-width: 620px; margin: 0 auto 10px; padding: 12px 14px; background: rgba(40, 40, 40, .95); border: 4px solid #3d9a3d; border-radius: 4px; }
.frame::before, .frame::after { content: ""; position: absolute; top: -10px; width: 14px; height: 14px; border-radius: 50%; background: #a89558; border: 1px solid #554; }
.frame::before { left: -10px; }
.frame::after { right: -10px; }
.pager { text-align: center; margin-bottom: 8px; color: #fff; }
.pager a, .pager .dim { font-size: 18px; color: var(--ok); margin: 0 8px; }
.pager .dim { color: #555; }
.rank tr:nth-child(even) td { background: rgba(255, 255, 255, .03); }
.rank tr.hit td { background: rgba(122, 193, 67, .22); }
.rank tr:nth-child(2) td:first-child { color: var(--gold); }

.charhead { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px; align-items: center; }
.botpic img { width: 138px; height: 67px; border-radius: 6px; border: 1px solid #555; background: #ddd; }
.kv td { padding: 3px 6px; }
.kv td.mu { width: 22%; }
.exp { height: 10px; background: #1d1d1d; border: 1px solid #666; }
.exp div { height: 100%; background: var(--ok); }
.equip { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.slot { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 5px 7px; background: #262626; border: 1px solid #5a5a5a; border-radius: 3px; min-height: 46px; }
.slot img { width: 48px; height: 48px; margin-bottom: 2px; }
.slot span { max-width: 100%; }
.slot span:last-child { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot.empty span:last-child { color: #666; }
.slot .mu { font-size: 11px; }
.dl { padding: 22px !important; }
.dltitle { font-size: 18px; color: #fff; }
.steps { margin: 0; padding-left: 20px; }
.steps li { margin: 4px 0; }
footer { text-align: center; padding: 14px; color: #777; font-size: 11px; }

@media (max-width: 760px) {
  .cols3, .cols2, .charhead { grid-template-columns: minmax(0, 1fr); }
  .banner { height: 110px; padding: 0 16px; }
  .logo { font-size: 30px; }
  .bots { display: none; }
  .top a { padding: 8px 10px; font-size: 13px; }
  main { padding: 10px 16px; }
  .rank th:nth-child(3), .rank td:nth-child(3) { display: none; }
  .rank-art img { width: 70px; height: 34px; }
  .flag { font-size: 12px; padding: 6px 8px; margin-left: 0; }
}
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 4px var(--ok); vertical-align: 1px; }
.status-tag { font-size: 12px; margin-left: 6px; }
.legend { margin-top: 6px; font-size: 11px; text-align: right; }
.botpick { display: inline-block; line-height: 0; border-radius: 8px; }
.botpick img { transition: opacity .15s, transform .15s; }
.botpick:hover img { transform: translateY(-2px); }
.botpick.on img { border: 2px solid var(--ok); box-shadow: 0 0 8px rgba(122, 193, 67, .7); }
.botpick.off img { opacity: .4; }
.botpick.off:hover img { opacity: .8; }
.botnote { font-size: 12px; margin: -4px 0 10px; }
.matches { margin-top: 6px; }
.stats { max-width: 480px; }
.stats td, .stats th { padding: 2px 8px; }
.stats tr:nth-child(even) td { background: rgba(255, 255, 255, .03); }
.statnote { margin-top: 8px; font-size: 11px; }
.gnotice { margin-top: 10px; padding: 8px 10px; background: #262626; border: 1px solid #5a5a5a; }
.gnotice p { margin: 4px 0 0; white-space: pre-line; }
