/* the live data pages: servers, numbers, news and guilds. sits on style.css */
:root{--t1:#b9ada3;--t2:#6fbf5f;--t3:#4f9ee8;--t4:#b06be0;--t5:#f2a33c;--t6:#e8484a;--t7:#f6e58d}
.t1{color:var(--t1)}.t2{color:var(--t2)}.t3{color:var(--t3)}.t4{color:var(--t4)}.t5{color:var(--t5)}.t6{color:var(--t6)}.t7{color:var(--t7)}

.page{padding:40px 0 72px}
.page h1{font-size:clamp(40px,7vw,60px);margin:0;text-shadow:0 4px 0 #000}
.page .sub{margin:4px 0 0;color:var(--muted);font-size:17px}
.page h2{font-size:24px;margin:44px 0 14px}
.box{background:var(--panel);border:2px solid var(--line);box-shadow:0 6px 0 #000}
.num{font:800 1em system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;letter-spacing:-.01em;font-variant-numeric:tabular-nums}

/* stand in avatars and crests, real ones come from Discord */
.av{display:inline-grid;place-items:center;flex:none;width:36px;height:36px;border:2px solid #000;font:600 18px var(--pixel);color:#0f0a0b;background:var(--c,#a6948a)}
.c1{--c:#e0795a}.c2{--c:#7fb6d9}.c3{--c:#d9c36a}.c4{--c:#9bcf8a}.c5{--c:#c79be0}.c6{--c:#e59ab3}.c7{--c:#8fd3c4}.c8{--c:#d7a06a}
.crest{display:inline-grid;place-items:center;flex:none;width:104px;height:104px;border:3px solid var(--gold);background:#2a1606;color:var(--gold);font:600 56px var(--pixel);box-shadow:0 0 0 3px #000,0 6px 0 3px #000}

/* rows */
.rows{width:100%;border-collapse:collapse}
.rows td,.rows th{padding:9px 14px;border-top:2px solid var(--line);text-align:left}
.rows tr:first-child td,.rows tr:first-child th{border-top:0}
.rows th{font:600 14px var(--pixel);color:var(--muted);letter-spacing:.04em}
.rows .r{width:56px;font:800 16px system-ui,sans-serif;color:var(--muted);font-variant-numeric:tabular-nums}
.rows .who{display:flex;align-items:center;gap:12px}
.rows .v{text-align:right}
.rows .dim{color:var(--muted)}

/* a player or guild header */
.id{display:flex;flex-wrap:wrap;align-items:center;gap:22px}
.id h1{font-size:clamp(36px,6vw,52px)}
.id .line{margin:6px 0 0;color:var(--muted)}
.badges{display:flex;gap:8px;margin-top:10px}
.badges span{display:flex;align-items:center;gap:6px;padding:3px 9px 3px 5px;border:2px solid var(--line);background:var(--panel);font:600 14px var(--pixel)}
.badges img{width:22px;height:22px;image-rendering:pixelated}
.badges i{width:14px;height:14px;margin:4px;background:var(--gold);box-shadow:0 0 0 2px #000}

.two{display:grid;grid-template-columns:1.25fr 1fr;gap:20px;margin-top:30px;align-items:start}
.two figure{margin:0}
.two figure img{width:100%;height:auto}
.sheet{padding:6px 18px 10px}
.sheet div{display:flex;justify-content:space-between;align-items:baseline;padding:10px 0;border-top:2px solid var(--line)}
.sheet div:first-child{border-top:0}
.sheet span{color:var(--muted)}
.sheet b{font-size:20px}
.sheet .big b{font-size:34px;color:var(--gold)}

.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.stat{padding:16px 16px 14px}
.stat>span{display:block;color:var(--muted);font-size:14px}
.stat b{display:block;font-size:26px;margin-top:2px}
.stat small{color:var(--muted)}
.stats.wide{grid-template-columns:repeat(3,1fr)}
.stats.wide .stat b{font-size:40px}

.chips{display:flex;flex-wrap:wrap;gap:10px}
.chips a{padding:8px 14px;color:var(--text);text-decoration:none}
.chips a b{font:800 18px system-ui,sans-serif;color:var(--gold);margin-right:8px}
.chips a:hover{border-color:#5b2c22}

/* guild */
.meter{padding:18px}
.meter .top2{display:flex;justify-content:space-between;align-items:baseline}
.meter .track{height:18px;margin:10px 0 8px;background:#000;border:2px solid var(--line)}
.meter .track i{display:block;height:100%;background:var(--ember)}
.meter p{margin:0;color:var(--muted);font-size:15px}
.duo{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:30px}

/* news */
.news{max-width:760px}
.post{padding:20px 22px;margin-top:20px}
.post h2{margin:2px 0 8px;font-size:28px}
.post h3{margin:1.4em 0 .4em;font-size:20px}
.post p{margin:.24em 0;color:var(--muted)}
.post strong{color:var(--text);font-weight:650}
.post .news-muted{color:var(--muted);font-size:.85em}
.post .news-break{margin-top:1em}
.post .news-icon{width:1.25em;height:1.25em;object-fit:contain;vertical-align:-.24em;image-rendering:pixelated}

.feed .rows td{padding:11px 14px}

@media (max-width:820px){
  .two,.duo{grid-template-columns:1fr}
  .stats,.stats.wide{grid-template-columns:1fr 1fr}
  .rows .hide{display:none}
}

/* round 2: real pictures in the stand-ins */
img.av{object-fit:cover;background:#000}
img.crest{padding:14px;box-sizing:border-box;object-fit:contain}
.ti{display:inline-block;width:22px;height:22px;vertical-align:-5px;margin-right:9px}
.age{display:inline-block;margin-top:14px;color:var(--muted);font-size:14px}
.age.stale{color:var(--red)}
.av.hid{background:var(--panel-2)}
.empty{padding:22px 14px;color:var(--muted)}
.tile{display:inline-grid;place-items:center;flex:none;width:36px;height:36px;border:2px solid #000;font:600 18px var(--pixel);color:#0f0a0b;background:var(--muted)}
.box.gap{margin-top:28px}
.stats.three{grid-template-columns:repeat(3,1fr)}
.stats.below{margin-top:16px}
.stats.gap{margin-top:28px}
.stats+h2,.box+h2{margin-top:36px}
.post .empty{padding:0}
@media (max-width:820px){.stats.three{grid-template-columns:1fr 1fr}}

/* shared navigation stays reachable on a phone, including from the home and 404 pages */
.top .wrap{height:auto;min-height:60px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}
.top nav{flex-wrap:wrap;justify-content:flex-end;row-gap:10px}
.top nav a.hide-sm{display:inline}
.page h1,.id>div{overflow-wrap:anywhere;min-width:0}
.id>div{flex:1}
.table-scroll{overflow-x:auto}
.rows .who{min-width:0}
.rows .who>span{overflow-wrap:anywhere;min-width:0}
.rows .who b{font-family:var(--pixel)}
.rows .num,.rows .r,.rows .v,.rows .hide,.meter,.id .line{font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-variant-numeric:tabular-nums}
.meter .top2{flex-wrap:wrap;gap:6px 12px}
.meter progress{display:block;width:100%;height:18px;margin:10px 0 8px;border:2px solid var(--line);background:#000;accent-color:var(--ember)}
.meter progress::-webkit-progress-bar{background:#000}
.meter progress::-webkit-progress-value{background:var(--ember)}
.meter progress::-moz-progress-bar{background:var(--ember)}
#coin-bar{accent-color:var(--gold)}
#coin-bar::-webkit-progress-value{background:var(--gold)}
#coin-bar::-moz-progress-bar{background:var(--gold)}
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
@media(max-width:600px){
  .top nav{width:100%;margin-left:0;justify-content:flex-start;gap:10px 16px}
  .top nav a{font-size:14px}
  .duo{grid-template-columns:1fr}
  .id{gap:14px}
  .id .crest{width:60px;height:60px;padding:6px}
  .rows td,.rows th{padding:10px 8px}
  .rows .who{gap:8px}
  .stats.wide,.stats.three{grid-template-columns:1fr 1fr}
  .stats.wide .stat b{font-size:30px}
  .post{padding:16px}
}
@media(max-width:360px){.stats.wide,.stats.three{grid-template-columns:1fr}}
