
:root{
  /* The chat colours from the game, not a brand palette */
  --green:#55FF55;--green-s:#153F15;--red:#FF5555;--yellow:#FFFF55;--gold:#FFAA00;--aqua:#55FFFF;--pink:#FF55FF;--orange:#FF9A3D;
  --sky:#78A7FF;--ink:#0D1B3D;
  /* The inventory screen */
  --gui:#C6C6C6;--gui-hi:#FFFFFF;--gui-lo:#555555;--slot:#8B8B8B;--slot-lo:#373737;--gui-ink:#2A2A2A;
  --big:'Jersey 25',monospace;--label:'Jersey 15',monospace;--body:'Barlow',Arial,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:auto}
body{margin:0;background:#111;color:#fff;font:400 18px/1.5 var(--body)}
img{display:block;max-width:100%}
a{color:var(--aqua)}
p{margin:0 0 .8em}
.wrap{width:min(1320px,calc(100% - 128px));margin:0 auto;padding:0 20px}
.px{image-rendering:pixelated}

/* ---- ground: the game's own menu background ---- */
.dirt,.slate,.rock,.tuffy,.deep{background-size:48px 48px;image-rendering:pixelated}
.rock{background-image:linear-gradient(rgba(0,0,0,.72),rgba(0,0,0,.72)),url(../mc/block/stone.png)}
.tuffy{background-image:linear-gradient(rgba(0,0,0,.68),rgba(0,0,0,.68)),url(../mc/block/tuff.png)}
.deep{background-image:linear-gradient(rgba(0,0,0,.6),rgba(0,0,0,.6)),url(../mc/block/deepslate.png)}
.dirt{background-image:linear-gradient(rgba(0,0,0,.74),rgba(0,0,0,.74)),url(../mc/block/dirt.png)}
.slate{background-image:linear-gradient(rgba(0,0,0,.76),rgba(0,0,0,.76)),url(../mc/block/polished_deepslate.png)}
.band{padding:56px 0 64px}

/* ---- type ---- */
h1,h2,h3{font-family:var(--big);font-weight:400;margin:0}
h2{font-size:56px;line-height:1;color:#fff;text-shadow:4px 4px 0 #3F3F3F;margin-bottom:14px}
h2 em{font-style:normal;color:var(--green);text-shadow:4px 4px 0 var(--green-s)}
h3{font-size:32px;line-height:1.05}
.lead{max-width:640px;font-size:19px}
code{font:400 21px var(--label);color:var(--yellow)}

/* ---- buttons: the stone button from the menus ---- */
.mcb{display:inline-block;font:400 24px/1 var(--label);color:#fff;text-decoration:none;text-shadow:2px 2px 0 #3F3F3F;
  background:#707070 url(../mc/block/stone.png);background-size:48px;background-blend-mode:multiply;image-rendering:pixelated;
  border:3px solid #000;box-shadow:inset 3px 3px 0 #ABABAB,inset -3px -3px 0 #4A4A4A;padding:11px 18px 12px;cursor:pointer}
.mcb:hover{background-color:#8390C4;box-shadow:inset 3px 3px 0 #C9D2F5,inset -3px -3px 0 #4C5683;color:var(--yellow)}
.mcb.go{background:#2E9E2E url(../mc/block/emerald_block.png);background-size:48px;background-blend-mode:multiply;box-shadow:inset 3px 3px 0 #8CFF8C,inset -3px -3px 0 #145214}
.mcb.go:hover{background-color:#42C442;color:#fff}
.mcb[disabled]{opacity:.5;cursor:default}

/* ---- panels: the inventory screen, corners notched ---- */
.gui{background:var(--gui);color:var(--gui-ink);border:4px solid #000;box-shadow:inset 4px 4px 0 var(--gui-hi),inset -4px -4px 0 var(--gui-lo);padding:18px;
  clip-path:polygon(4px 0,calc(100% - 4px) 0,calc(100% - 4px) 4px,100% 4px,100% calc(100% - 4px),calc(100% - 4px) calc(100% - 4px),calc(100% - 4px) 100%,4px 100%,4px calc(100% - 4px),0 calc(100% - 4px),0 4px,4px 4px)}
.gui h3{color:#2A2A2A}
.gui a:not(.mcb){color:#123C9C}

/* ---- top bar ---- */
.bar{background:#000;border-bottom:4px solid #2B2B2B;position:sticky;top:0;z-index:20}

.bar .wrap{display:flex;align-items:center;gap:6px 12px;flex-wrap:wrap;padding-top:9px;padding-bottom:9px}
.bar .logo{font:400 30px/1 var(--big);color:#fff;text-decoration:none;text-shadow:2px 2px 0 #3F3F3F;margin-right:4px}
.bar .logo b{font-weight:400;color:var(--green);text-shadow:2px 2px 0 var(--green-s)}
.bar nav{display:flex;flex-wrap:wrap;gap:2px 12px;flex:1}
.bar nav a{font:400 20px/1.3 var(--label);color:#fff;text-decoration:none}
.bar nav a:hover{color:var(--yellow)}
.bar nav a.ev{color:var(--orange)}
.mocktag{position:fixed;left:8px;bottom:8px;z-index:25;font:400 19px/1 var(--label);color:#000;background:var(--yellow);padding:4px 8px}

/* ---- hero: a block of sky, then the ground ---- */
.hero{background:var(--sky);position:relative;overflow:hidden;padding:44px 0 36px}
.cloud{position:absolute;background:#fff;height:26px;opacity:.92}
.cloud::before,.cloud::after{content:"";position:absolute;background:#fff}
.cloud::before{left:26px;right:52px;top:-26px;height:26px}
.cloud::after{left:78px;right:-26px;top:26px;height:26px;background:#E8F0FF}
.herogrid{position:relative;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:36px;align-items:start}
h1{position:relative;z-index:2;font-size:112px;line-height:.86;color:#fff;margin-bottom:18px;letter-spacing:.5px;text-shadow:-3px 0 0 #000,3px 0 0 #000,0 -3px 0 #000,0 3px 0 #000,-3px -3px 0 #000,3px -3px 0 #000,-3px 3px 0 #000,3px 3px 0 #000,7px 7px 0 #000}
h1 b{display:block;font-weight:400;color:var(--green)}
.hero .pitch{font-size:23px;line-height:1.32;font-weight:500;color:var(--ink);margin-bottom:18px}

/* the server-list row, as it looks in the multiplayer menu */
.srv{display:flex;gap:10px;width:100%;text-align:left;background:#000 ;border:3px solid #000;outline:2px solid #fff;outline-offset:-2px;padding:9px;color:#fff;cursor:pointer;font:inherit}
.srv:hover{outline-color:var(--yellow)}
.srv>img{width:64px;height:64px;flex:none}
.srv .t{flex:1;min-width:0;font:400 22px/1.12 var(--label)}
.srv .top{display:flex;justify-content:space-between;gap:10px}
.srv .count{color:#fff}
.srv .count b{font-weight:400;color:var(--yellow)}
.srv .m1{color:var(--green)}
.srv .ip{display:block;color:var(--aqua)}
.bars{display:inline-flex;align-items:flex-end;gap:2px;height:14px;margin-left:6px;vertical-align:-1px}
.bars i{width:3px;background:var(--green)}
.bars i:nth-child(1){height:4px}.bars i:nth-child(2){height:6px}.bars i:nth-child(3){height:8px}.bars i:nth-child(4){height:11px}.bars i:nth-child(5){height:14px}
.heroacts{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.shot{margin:0;border:4px solid #000;background:#000;box-shadow:0 0 0 3px #8B8B8B,0 0 0 6px #000}
.shot video,.shot img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.shot figcaption{font:400 21px/1.2 var(--label);padding:7px 9px 8px;color:#fff;background:#000}
.shot figcaption b{font-weight:400;color:var(--yellow)}
.grass{height:48px;background:url(../mc/block/grass_block_side.png) repeat-x 0 0/48px 48px;image-rendering:pixelated}

/* ---- the infected: every character is rendered from the real class .bbmodel files ---- */
.spr{display:block;position:absolute;background-repeat:no-repeat;image-rendering:pixelated;pointer-events:none;animation:strip var(--t,.6s) steps(var(--n)) infinite}
@keyframes strip{to{background-position-x:calc(var(--w)*var(--n)*-1)}}
.flip{transform:scaleX(-1)}
.hero{padding-bottom:150px}
.scene{position:absolute;left:0;right:0;bottom:0;height:0;z-index:1}
.scene .spr{bottom:-3px}
.scenewrap{position:relative;height:0;padding:0}
.click{pointer-events:auto;cursor:crosshair}
.feed{position:absolute;z-index:3;left:240px;bottom:10px;background:rgba(0,0,0,.72);color:#fff;font:400 21px/1.15 var(--label);padding:3px 7px 4px;white-space:nowrap}
.feed b{font-weight:400;color:var(--red)}
#dangler{transition:opacity .4s}
.joined{z-index:0}
.band>.wrap{position:relative;z-index:1}
.classif{position:relative;display:flex;align-items:center;gap:12px;margin-top:16px;min-height:60px;font:400 23px/1.15 var(--label);color:#fff}
.classif .spr{position:static;flex:none;margin:0;animation:none}
.maps div.pick{background:var(--yellow);color:#000;display:inline-block;padding:0 6px}
.maps div.pick small{color:#333}
.endgame{position:relative;height:330px;overflow:hidden;background-size:48px 48px;image-rendering:pixelated;background-image:linear-gradient(rgba(0,0,0,.6),rgba(0,0,0,.6)),url(../mc/block/deepslate.png)}
.endgame>.spr{bottom:-16px}
.endgame>.spr.far{bottom:26px;filter:brightness(.55);z-index:0}
.endgame>.spr.near{bottom:-44px;z-index:4}
.pillar{position:absolute;left:50%;margin-left:-24px;bottom:0;width:48px;height:192px;background:url(../mc/block/stone_bricks.png) 0 0/48px;image-rendering:pixelated;z-index:3}
.pillar .s-fight_ed{bottom:192px}
.grasswrap{position:relative;height:48px;overflow-x:clip}
.grasswrap .blight{position:absolute;top:0;width:48px;height:48px;background:url(../mc/block/sculk.png) 0 0/48px;image-rendering:pixelated}
/* hanging on to the edges of things */
.fw{position:relative}
.fw>.shot,.fw>.gui{position:relative;z-index:1}
.fw>.back{z-index:0}
.fw>.front{z-index:2}
.dangle{position:absolute;top:0;z-index:3;animation:dangle 5s ease-in-out infinite;transform-origin:top center;pointer-events:none}
.dangle>i:first-child{display:block;width:2px;background:#E8E8E8;margin:0 auto}
.dangle .spr{position:relative;display:block}
@keyframes dangle{0%,100%{transform:rotate(-3deg) translateY(0)}50%{transform:rotate(3deg) translateY(10px)}}
.crawl{position:absolute;left:0;top:-20px;z-index:3;width:0;height:0;animation:cross 42s linear infinite}
.crawl .spr{--t:.5s;left:0;top:0}
.band{position:relative}
.web{position:absolute;width:64px;height:64px;background:url(../mc/block/cobweb.png) 0 0/64px;image-rendering:pixelated;z-index:2;pointer-events:none}

/* the chat box */
.chat{background:rgba(0,0,0,.86);font:400 24px/1.25 var(--label);padding:10px 12px;max-width:940px}
.chat div{margin:2px 0}
.chat a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.chat .h{color:var(--orange)}.chat .s{color:var(--green)}.chat .c{color:var(--aqua)}

/* ---- a round ---- */
.round{display:grid;gap:44px;margin-top:26px}
.step{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:26px;align-items:center}
.step:nth-child(even) .shot{order:-1}
.step .when{font:400 30px/1 var(--label);color:var(--yellow);margin-bottom:4px}
.step p{font-size:20px;max-width:520px}

/* ---- classes: a chest and the player preview ---- */
.armoury{display:grid;gap:18px;margin-top:22px;align-items:stretch}
.chest h4{font:400 23px/1 var(--label);color:#404040;margin:0 0 5px}
.chest h4:not(:first-child){margin-top:12px}
.slots{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:0}
.slot{aspect-ratio:1;background:var(--slot);border:0;padding:12%;margin:0;box-shadow:inset 3px 3px 0 var(--slot-lo),inset -3px -3px 0 #fff;cursor:pointer}
.slot img{width:100%;height:100%;object-fit:contain}
.slot:hover{background:#B5B5B5}
.slot[aria-pressed=true]{background:#5E8F5E;box-shadow:inset 3px 3px 0 #123C12,inset -3px -3px 0 #BFFFBF}
.doll{display:flex;flex-direction:column}
.stage{position:relative;flex:1;min-height:340px;background:linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)),url(../mc/block/deepslate_bricks.png);background-size:72px;box-shadow:inset 3px 3px 0 var(--slot-lo),inset -3px -3px 0 #fff;image-rendering:pixelated;touch-action:pan-y;cursor:grab}
.stage canvas{position:absolute;inset:3px;width:calc(100% - 6px)!important;height:calc(100% - 6px)!important;image-rendering:auto}
.stage .hint{position:absolute;left:10px;bottom:7px;font:400 19px/1 var(--label);color:#fff;text-shadow:2px 2px 0 #000;pointer-events:none}
.doll .nm{font:400 34px/1 var(--big);margin:12px 0 2px;color:#2A2A2A}
.doll .tier{font:400 22px/1 var(--label);margin-left:8px;padding:1px 6px 2px;background:#000}
.doll .ab{font-size:18px;line-height:1.35;min-height:50px;margin:0 0 10px}
.acts{display:flex;flex-wrap:wrap;gap:6px}
.acts .mcb{font-size:21px;padding:8px 13px 9px}
.tip{position:fixed;z-index:60;pointer-events:none;max-width:290px;background:#100010;border:3px solid #2A0A5E;outline:2px solid #100010;padding:6px 9px 7px;font:400 21px/1.15 var(--label);color:#fff}
.tip b{font-weight:400;display:block}
.tip small{display:block;font-size:19px;color:var(--aqua);margin-top:3px}

/* ---- season ---- */
.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px;margin-top:22px}
.three h3{color:var(--green);text-shadow:3px 3px 0 var(--green-s);margin-bottom:8px}
.three .ic{width:48px;height:48px;margin-bottom:8px}

/* ---- leaderboards: the Tab list ---- */
.tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:22px;align-items:start;margin-bottom:112px}
.tab{position:relative}
.tab li{transition:transform .25s}
#tabs .tab:first-child li:last-child{transform:rotate(5deg) translateY(9px);transform-origin:left center;position:relative;z-index:1}
#tabs .tab:first-child:hover li:last-child{transform:none}
.hanger{left:62%;top:calc(100% + 2px);transition:transform .55s cubic-bezier(.5,0,1,1),opacity .5s;--t:.8s}
#tabs .tab:first-child:hover .hanger{transform:translateY(300px);opacity:0}
.tab{background:#0B0B0B;border:3px solid #000;box-shadow:0 0 0 2px #6E6E6E;padding:6px}
.tab .hd{font:400 25px/1 var(--label);color:var(--yellow);padding:4px 4px 7px;text-align:center}
.tab ol{list-style:none;margin:0;padding:0}
.tab li{display:flex;align-items:center;gap:6px;background:rgba(255,255,255,.14);margin-top:2px;padding:2px 6px 2px 2px;font:400 22px/1.15 var(--label)}
.tab li img{width:20px;height:20px;flex:none}
.tab .n{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tab li:nth-child(1) .n{color:var(--gold)}
.tab .v{color:var(--green)}
.tab .v small{font-size:18px;color:var(--pink);margin-right:5px}
.lbnote{font:400 21px/1.2 var(--label);color:#fff;margin-top:-92px;margin-left:calc(25% + 10px);min-height:80px;position:relative;z-index:1}

/* ---- screenshots ---- */
.shots{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:22px;margin-top:22px}
.shots .fw .front{z-index:2}
.shots .shot-w{grid-column:span 3}
.vids{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-top:22px}
.vids iframe{display:block;width:100%;aspect-ratio:16/9;border:4px solid #000;box-shadow:0 0 0 3px #8B8B8B,0 0 0 6px #000;background:#000}

/* ---- maps ---- */
.maps{columns:4 220px;column-gap:26px;margin-top:20px;font:400 22px/1.28 var(--label);background:#0B0B0B;border:3px solid #000;box-shadow:0 0 0 2px #6E6E6E;padding:14px 18px}
.maps div{break-inside:avoid;color:#fff}
.maps small{font-size:19px;color:var(--aqua);margin-left:5px}
.maps .new{color:var(--yellow)}

/* ---- store ---- */
.ranks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:64px}
.rank{display:flex;flex-direction:column}
.rank .tag{align-self:flex-start;background:#000;font:400 28px/1 var(--label);padding:4px 9px 5px}
.rank .price{font:400 46px/1 var(--big);margin:10px 0 8px;color:#2A2A2A}
.rank ul{margin:0 0 14px;padding:0;list-style:none;font-size:17px;line-height:1.35;flex:1}
.rank li{padding:5px 0;border-top:2px solid #A0A0A0}
.rank .extra{color:#7A4A00;font-weight:700}

/* ---- faq ---- */
.faq{margin-top:20px;max-width:820px}
.faq details{border-top:3px solid rgba(255,255,255,.28);padding:10px 0}
.faq summary{font:400 27px/1.15 var(--label);cursor:pointer;color:#fff}
.faq summary:hover{color:var(--yellow)}
.faq p{margin:8px 0 2px}

footer{background:#000;padding:30px 0;font-size:16px;color:#fff}
footer .wrap{display:flex;flex-wrap:wrap;gap:14px 28px;justify-content:space-between}
footer nav{display:flex;flex-wrap:wrap;gap:4px 16px}
footer a{color:#fff;font:400 21px var(--label)}

@media (max-width:1000px){
  .wrap{width:100%}
  .hotbar,.dio.opt{display:none!important}
  .sechead,.faqgrid,.toprow{grid-template-columns:minmax(0,1fr)!important}
  .boost{grid-template-columns:minmax(0,1fr)!important}
  .items2{grid-template-columns:minmax(0,1fr)!important}
  .herogrid,.armoury,.step{grid-template-columns:minmax(0,1fr)}
  .step:nth-child(even) .shot{order:0}
  .three,.ranks{grid-template-columns:minmax(0,1fr)}
  .ranks{gap:74px}
  .hero{padding-bottom:230px}
  .tabs{margin-bottom:0}
  #tabs .tab:first-child{margin-bottom:110px}
  .lbnote{margin:12px 0 0;min-height:0}
  .tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
  h1{font-size:96px}
  .cloud{display:none}
}
@media (max-width:560px){
  body{font-size:17px}
  .wrap{padding:0 16px}
  .band{padding:40px 0 46px}
  h1{font-size:76px}h2{font-size:44px}
  .hero{padding-top:26px}
  .hero .pitch{font-size:20px}
  .tabs,.vids{grid-template-columns:minmax(0,1fr)}
  .shots{grid-template-columns:minmax(0,1fr)}
  .shots .shot-w{grid-column:auto}
  .gui{padding:14px}
  .scene .hide-sm,.dangle{display:none}
  .feed{left:0;bottom:122px;white-space:normal;max-width:210px}
  .classif .spr{display:none}
  .dio{zoom:.68}
  .signs{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .slot{box-shadow:inset 2px 2px 0 var(--slot-lo),inset -2px -2px 0 #fff}
  .stage{min-height:300px}
  .chat{font-size:21px}
  .srv>img{width:48px;height:48px}
  .srv .t{font-size:19px}
  .bar .logo{flex:1}
  .bar nav{order:3;flex:0 0 100%;flex-wrap:nowrap;overflow-x:auto;gap:16px;white-space:nowrap;padding-bottom:3px}
  .slots{grid-template-columns:repeat(7,minmax(0,1fr))}
  .doll .tier{display:inline-block}
}
@media (prefers-reduced-motion:reduce){.hero video{display:none}.spr,.dangle{animation:none}}

/* ---- class arena ---- */
.armoury{grid-template-columns:minmax(0,470px) minmax(0,1fr)}
.stage{min-height:440px}
#actbar{position:absolute;left:0;right:0;bottom:30px;text-align:center;font:400 23px/1.1 var(--label);color:#fff;text-shadow:2px 2px 0 #000;pointer-events:none;padding:0 12px}
#blinder{position:absolute;inset:3px;background:#000;display:flex;align-items:center;justify-content:center;color:#fff;font:400 34px/1 var(--big);transition:opacity .5s;pointer-events:none}
#blinder.off{opacity:0}
#blinder[hidden],#actbar[hidden]{display:none}
.dmg{position:absolute;transform:translate(-50%,-100%);font:400 24px/1 var(--label);text-shadow:2px 2px 0 #000;white-space:nowrap;pointer-events:none;animation:dmgup 1.15s ease-out forwards}
@keyframes dmgup{to{margin-top:-46px;opacity:0}}
.doll .pas{font-size:16px;line-height:1.3;margin:0 0 6px;color:#3A3A3A}
.doll .ab{min-height:48px}
.doll .ab b{font-weight:700}
.doll .cd{font:400 19px/1 var(--label);background:#2A2A2A;color:var(--yellow);padding:0 5px 1px;margin-right:3px}
/* ---- section heads share a row with a little scene ---- */
.sechead{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px 30px;align-items:end;margin-bottom:6px}
.dio{position:relative;flex:none;image-rendering:pixelated;clip-path:inset(-400px -400px 0 -400px)}
.dio .tl{position:absolute;width:48px;height:48px;background-size:48px 48px;image-rendering:pixelated}
.dio .spr{z-index:1}
.dio .tl.fr{z-index:2}
.dio .tl.bk{filter:brightness(.42)}
.dio .nt{position:absolute;z-index:3;transform:translateX(-50%);background:rgba(0,0,0,.55);color:#fff;font:400 19px/1 var(--label);padding:1px 5px 2px;white-space:nowrap}
.dio img.pic{position:absolute;z-index:1;border:5px solid #7A4A1E;outline:2px solid #000;object-fit:cover}
.dio img.it{position:absolute;z-index:3;width:34px;height:34px;image-rendering:pixelated}
.step .dio{margin-top:14px}
.step{align-items:start!important}
.step>div:first-child{align-self:stretch;display:flex;flex-direction:column;justify-content:space-between}
/* ---- the ground: single blocks swapped into the same grid, so nothing looks stuck on ---- */
#terrain{position:absolute;left:0;top:0;width:100%;overflow:hidden;z-index:0;pointer-events:none}
#terrain i{position:absolute;width:48px;height:48px;background-size:48px 48px;image-rendering:pixelated}
section{scroll-margin-top:58px}
/* ---- the top strip ---- */
.toprow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center}
.chat{max-width:none}
.signs{display:grid;grid-template-columns:repeat(3,132px);gap:12px}
.sign{background:linear-gradient(rgba(255,241,210,.62),rgba(255,241,210,.62)),url(../mc/block/oak_planks.png) 0 0/48px;image-rendering:pixelated;border:4px solid #3B2A14;text-align:center;padding:9px 4px 11px;color:#000;font:400 22px/1.05 var(--label)}
.sign b{display:block;font:400 42px/1 var(--big);color:#000}
/* ---- store ---- */
.storeh{margin-top:48px;margin-bottom:10px;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 16px}
.storeh h3{font-size:42px;color:#fff;text-shadow:3px 3px 0 #3F3F3F}
.storeh p{margin:0;max-width:760px}
.items2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.boost{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.item{display:flex;flex-direction:column;height:100%}
.item .top{display:flex;gap:14px;align-items:center;margin-bottom:8px}
.item .top img{width:64px;height:64px;flex:none;object-fit:contain;image-rendering:pixelated}
.item h4{font:400 28px/1 var(--big);margin:0;color:#2A2A2A}
.item .pr{font:400 34px/1 var(--big);color:#2A2A2A;margin-top:3px}
.item .big{width:100%;height:auto;margin-bottom:10px;border:3px solid #000;image-rendering:auto;background:#222}
.item p{font-size:16px;line-height:1.35;flex:1;margin:0 0 12px}
.item .mcb{align-self:flex-start;font-size:21px;padding:8px 13px 9px}
.item.compact .top{margin-bottom:10px}
.hwband{margin-top:48px;border:4px solid #000;background:#1A0D04 url(../mc/block/oak_planks.png) 0 0/48px;background-blend-mode:multiply;padding:18px}
.hwband .storeh{margin-top:0}
.hwband .storeh h3{color:var(--orange)}
.lineup{width:100%;max-width:820px;height:auto;display:block;margin:12px auto;border:3px solid #000}
.storenote{margin:18px 0 0;font-size:15px;line-height:1.4}
.sups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
.sups ol{list-style:none;margin:0;padding:0}
.sups li{display:flex;align-items:center;gap:7px;background:rgba(255,255,255,.14);margin-top:2px;padding:2px 7px 2px 2px;font:400 22px/1.15 var(--label)}
.sups li img{width:20px;height:20px}
.sups li .n{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sups li .v{color:var(--yellow)}
.sups .tab{padding:8px}
/* ---- questions ---- */
.faqgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,400px);gap:26px;align-items:start}
.help h3{margin-bottom:6px}
.help ul{list-style:none;margin:0;padding:0;font-size:17px;line-height:1.35}
.help li{padding:7px 0;border-top:2px solid #A0A0A0}
.help li b{display:block;font:400 23px/1.1 var(--label)}
/* ---- hero skyline and sun ---- */
.skyline{position:absolute;left:0;bottom:0;z-index:0;image-rendering:pixelated;pointer-events:none}
.sun{position:absolute;top:30px;left:35%;width:64px;height:64px;background:#FFFBD0;box-shadow:0 0 0 14px rgba(255,248,190,.42),0 0 0 28px rgba(255,248,190,.2);z-index:0;pointer-events:none}
.herogrid{z-index:1}
.flower{position:absolute;width:32px;height:32px;bottom:-1px;image-rendering:pixelated;pointer-events:none}
/* ---- hit the infected ---- */
.whack{pointer-events:auto;cursor:crosshair}
.pfx{position:fixed;width:7px;height:7px;z-index:40;pointer-events:none}
.cook{position:fixed;z-index:41;pointer-events:none;display:flex;align-items:center;gap:4px;font:400 24px/1 var(--label);color:var(--yellow);text-shadow:2px 2px 0 #000;animation:cook 1.1s ease-out forwards}
.cook img{width:24px;height:24px;image-rendering:pixelated}
@keyframes cook{to{transform:translateY(-54px);opacity:0}}
/* ---- hotbar ---- */
.hotbar{position:fixed;left:50%;bottom:6px;transform:translateX(-50%);z-index:24;display:flex;background:rgba(40,40,40,.86);border:3px solid #000;box-shadow:inset 2px 2px 0 #9A9A9A,inset -2px -2px 0 #2A2A2A;padding:2px}
.hotbar a{position:relative;width:42px;height:42px;display:flex;align-items:center;justify-content:center;border:2px solid transparent}
.hotbar a img{width:30px;height:30px;image-rendering:pixelated}
.hotbar a:hover{background:rgba(255,255,255,.2)}
.hotbar a.on{border-color:#fff;background:rgba(255,255,255,.08)}
.hotbar a i{position:absolute;right:2px;bottom:0;font:400 15px/1 var(--label);font-style:normal;color:#fff;text-shadow:1px 1px 0 #000}
@media (max-width:1000px){
  .armoury{grid-template-columns:minmax(0,1fr)}
  .stage{min-height:300px}
  .signs{grid-template-columns:repeat(3,minmax(0,1fr))}
  .toprow{gap:12px}
}
.hotbar{transition:opacity .2s}
.hotbar.away{opacity:0;pointer-events:none}
.item.pass{flex-direction:row;gap:18px;align-items:center}
.item.pass>img{width:min(44%,300px);height:auto;flex:none;image-rendering:auto}
.item.pass .tx{display:flex;flex-direction:column;min-width:0}
.item.pass .tx p{margin-top:8px}
@media (max-width:560px){.item.pass{flex-direction:column}.item.pass>img{width:70%}}
/* the item name above the hotbar, when you change slot */
.hbname{position:fixed;left:50%;bottom:64px;transform:translateX(-50%);z-index:24;font:400 25px/1 var(--label);color:#fff;text-shadow:2px 2px 0 #3F3F3F;pointer-events:none;opacity:0;transition:opacity .35s;white-space:nowrap}
.hbname.on{opacity:1;transition:none}
@media (max-width:1000px){.hbname,.sun{display:none}}
.band .lead,.step p,.three p,.storeh p,.storenote,.faq p,.classif,.lbnote{text-shadow:1px 1px 0 #000}
.faq{background:#0B0B0B;border:3px solid #000;box-shadow:0 0 0 2px #6E6E6E;padding:6px 18px 10px}
.faq details:first-child{border-top:0}

/* ---- short pages ---- */
.hero.sub{padding:34px 0 110px}
.subh{font-size:74px;line-height:.95;margin-bottom:8px;color:#fff}
.hero.sub .pitch{max-width:700px;margin:0;position:relative;z-index:2}
.hero.sub .wrap{position:relative;z-index:1}
.pitch b{font-weight:700}
.bar nav a.st{display:inline-flex;align-items:center;gap:4px;color:var(--yellow)}
.bar nav a.st img{width:20px;height:20px;image-rendering:pixelated}
.phonenote{display:none;background:rgba(0,0,0,.72);color:#fff;font-size:16px;line-height:1.3;padding:8px 10px;margin:10px 0 0}
/* ---- how a round goes, on one screen ---- */
.round3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;margin-top:14px}
.round3 .when{margin-top:14px}
.round3 p{font-size:18px;margin:4px 0 0}
.round3 .shot img{aspect-ratio:16/9;object-fit:cover}
/* ---- leaderboard, short ---- */
.boardgrid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px 30px;align-items:end}
#tabs{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:14px;margin-bottom:118px}
#tabs .tab:first-child li:last-child{transform:rotate(4deg) translateY(9px)}
/* ---- store on the home page ---- */
.ranks.mini{margin-top:52px}
.ranks.mini .rank p{font-size:17px;line-height:1.35;flex:1;margin:0 0 12px}
.ranks.mini .price{margin-bottom:6px}
.also{display:flex;align-items:center;gap:18px;width:100%;margin-top:18px;background:#0B0B0B;border:3px solid #000;box-shadow:0 0 0 2px #6E6E6E;padding:12px 16px;color:#fff;text-align:left;cursor:pointer;font:inherit}
.also:hover{box-shadow:0 0 0 2px var(--yellow)}
.alsoic{display:flex;gap:4px;flex:none}
.alsoic img{width:46px;height:46px;object-fit:contain;background:var(--slot);box-shadow:inset 2px 2px 0 var(--slot-lo),inset -2px -2px 0 #fff;padding:4px;image-rendering:auto}
.alsotx{flex:1;min-width:0;font-size:16px;line-height:1.3}
.alsotx b{display:block;font:400 26px/1.05 var(--label);color:var(--yellow);margin-bottom:2px}
.also .mcb{flex:none}
/* ---- questions, side by side ---- */
.faq2{max-width:none;margin-top:8px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px}
.faq2 details{border-top:0;padding:8px 0}
.faq2 summary{list-style:none;pointer-events:none}
.faq2 summary::-webkit-details-marker{display:none}
/* ---- store pop-up ---- */
.popwrap{position:fixed;inset:0;z-index:50;background:rgba(0,0,0,.72);display:flex;align-items:center;justify-content:center;padding:16px}
.popwrap[hidden]{display:none}
.popbox{position:relative;width:min(640px,100%);max-height:calc(100vh - 32px);overflow:auto;clip-path:none}
.popbox h3{font-size:38px;color:#2A2A2A;margin:0 34px 2px 0}
.poptip{font-size:15px;margin:0 0 10px;color:#3A3A3A}
.popslots{grid-template-columns:repeat(8,minmax(0,1fr));margin-bottom:12px}
.popslots .slot{display:flex;align-items:center;justify-content:center;padding:10%}
.popslots .slot img{width:100%;height:100%;object-fit:contain}
.popsum{list-style:none;margin:0 0 14px;padding:0;font-size:16px;line-height:1.3}
.popsum li{padding:5px 0;border-top:2px solid #A0A0A0}
.popsum li.hw b{color:#A04A00}
.popx{position:absolute;right:14px;top:14px;width:32px;height:32px;font:400 22px/1 var(--label);color:#fff;background:#707070;border:3px solid #000;box-shadow:inset 2px 2px 0 #ABABAB,inset -2px -2px 0 #4A4A4A;cursor:pointer}
.popx:hover{background:#8390C4}
body.modal{overflow:hidden}
/* ---- the store toast, like an in-game advancement ---- */
.toast{position:fixed;right:14px;top:66px;z-index:30;display:flex;align-items:center;gap:10px;width:330px;text-align:left;background:#1B1B1B;border:3px solid #000;box-shadow:inset 2px 2px 0 #6E6E6E,inset -2px -2px 0 #000;color:#fff;padding:8px 12px 9px 8px;cursor:pointer;transform:translateX(120%);transition:transform .35s;font:inherit}
.toast.on{transform:none}
.toast img{width:44px;height:44px;object-fit:contain;flex:none;background:var(--slot);padding:3px}
.toast span{font-size:15px;line-height:1.25}
.toast b{display:block;font:400 22px/1.05 var(--label);color:var(--yellow)}
/* ---- store tabs, like the creative inventory ---- */
.ctabs{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:0;position:relative;z-index:2}
.ctabs a{display:flex;align-items:center;gap:7px;font:400 23px/1 var(--label);color:#2A2A2A;text-decoration:none;background:#9A9A9A;border:3px solid #000;border-bottom:0;box-shadow:inset 2px 2px 0 #C6C6C6;padding:8px 13px 9px}
.ctabs a img{width:26px;height:26px;object-fit:contain;image-rendering:auto}
.ctabs a:hover{background:#B5B5B5}
.ctabs a.on{background:var(--gui);box-shadow:inset 3px 3px 0 #fff;padding-bottom:12px;margin-bottom:-3px}
.ctabs a.ev{color:#7A3A00}
.cpanel{background:rgba(0,0,0,.55);border:3px solid #000;box-shadow:0 0 0 2px #6E6E6E;padding:18px;min-height:280px}
.cpanel[hidden]{display:none}
.cintro{margin:0 0 16px;max-width:820px;text-shadow:1px 1px 0 #000}
.cpanel .lineup{margin-top:18px}
.cpanel .faq{background:none;border:0;box-shadow:none;padding:0}
.storenote{margin-top:16px}
/* ---- maps page ---- */
.mapbar{display:flex;align-items:center;gap:12px;margin-bottom:10px}
#mapq{width:min(420px,100%);font:400 24px/1 var(--label);color:#fff;background:#0B0B0B;border:3px solid #000;box-shadow:0 0 0 2px #8B8B8B;padding:9px 11px}
#mapq::placeholder{color:#BDBDBD}
#mapq:focus{outline:0;box-shadow:0 0 0 2px var(--yellow)}
#mapn{font:400 24px/1 var(--label);color:var(--yellow)}
.maps div[hidden]{display:none}
/* ---- footer: the last thing is how to join ---- */
footer{position:relative;z-index:1;padding:26px 0}
footer .wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px 30px;align-items:center}
.endip{background:none;border:0;padding:0;cursor:pointer;font:400 44px/1 var(--big);color:var(--green);text-shadow:3px 3px 0 var(--green-s);display:block}
.endip:hover{color:#fff}
.endline{font:400 23px/1.1 var(--label);color:var(--yellow);margin:5px 0 10px}
.footcol p{margin:8px 0 0;font-size:15px}
@media (max-width:1000px){
  .round3,.boardgrid,footer .wrap{grid-template-columns:minmax(0,1fr)}
  #tabs{margin-bottom:0}
  #tabs .tab:first-child{margin-bottom:110px}
  .ranks.mini{gap:62px}
  .also{flex-wrap:wrap}
  .faq2{grid-template-columns:minmax(0,1fr)}
  .toast{top:auto;bottom:44px;right:8px;width:calc(100% - 16px)}
  .subh{font-size:52px}
}
@media (max-width:700px){
  .phonenote{display:block}
  .heroacts .dc{order:-1;background:#2E9E2E url(../mc/block/emerald_block.png);background-size:48px;background-blend-mode:multiply;box-shadow:inset 3px 3px 0 #8CFF8C,inset -3px -3px 0 #145214}
  .popslots{grid-template-columns:repeat(6,minmax(0,1fr))}
  .endip{font-size:32px}
}

.bar nav a{flex:none}

/* ---- one ground, in straight rows ---- */
.band{padding:84px 0 44px;background-color:#111;background-image:linear-gradient(rgba(0,0,0,.74),rgba(0,0,0,.74)),url(../mc/block/polished_deepslate.png);background-size:48px 48px;background-position:0 0;image-rendering:auto}
.band::before{content:"";position:absolute;left:0;right:0;top:0;height:48px;background-image:linear-gradient(rgba(0,0,0,.5),rgba(0,0,0,.5)),url(../mc/block/stone_bricks.png);background-size:48px 48px;image-rendering:pixelated;z-index:0}
.grasswrap + .band{padding-top:28px}
.grasswrap + .band::before{display:none}
.band>.wrap{position:relative;z-index:1}
.wrap{width:min(1320px,calc(100% - 80px))}
.grasswrap{height:96px}
.dirtrow{height:48px;background-image:linear-gradient(rgba(0,0,0,.34),rgba(0,0,0,.34)),url(../mc/block/dirt.png);background-size:48px 48px;image-rendering:pixelated}
.endgame{background-image:linear-gradient(rgba(0,0,0,.74),rgba(0,0,0,.74)),url(../mc/block/polished_deepslate.png);background-size:48px 48px;height:300px}
.endgame::before{content:"";position:absolute;left:0;right:0;top:0;height:48px;background-image:linear-gradient(rgba(0,0,0,.5),rgba(0,0,0,.5)),url(../mc/block/stone_bricks.png);background-size:48px 48px;image-rendering:pixelated}
.endgame::after{content:"";position:absolute;left:0;right:0;bottom:0;height:48px;background:url(../mc/block/sculk.png) 0 0/48px 48px;image-rendering:pixelated;z-index:5}
.endgame>.spr{bottom:30px}
.endgame>.spr.far{bottom:62px}
.endgame>.spr.near{bottom:6px}
.pillar{height:144px;z-index:4}
.pillar .s-fight_ed{bottom:144px}
/* ---- the face next to the name ---- */
.bar .logo{display:inline-flex;align-items:center;gap:8px}
.bar .logo img{width:30px;height:30px;display:block;margin-right:2px}
h1.lock{display:flex;align-items:center;gap:16px;font-size:88px;line-height:.86;margin-bottom:16px}
h1.lock img{width:156px;height:156px;flex:none;display:block;border:4px solid #000;box-shadow:5px 5px 0 #000}
h1.lock span{display:block}
@media (max-width:560px){h1.lock{font-size:58px;gap:10px}h1.lock img{width:102px;height:102px;box-shadow:3px 3px 0 #000}}

@media (max-width:1000px){.wrap{width:100%}}

/* ---- the real logo: the face and the Arcade lettering ---- */
.bar .logo{gap:7px;margin-right:6px}
.bar .logo .face{width:32px;height:32px;margin:0;image-rendering:pixelated}
.bar .logo .word{width:204px;height:auto;image-rendering:pixelated;display:block}
h1.lock{gap:14px;margin-bottom:16px;font-size:inherit}
h1.lock .face{width:150px;height:150px;image-rendering:pixelated;border:4px solid #000;box-shadow:5px 5px 0 #000;flex:none}
h1.lock .word{flex:1;min-width:0;width:100%;max-width:342px;height:auto;image-rendering:pixelated;display:block;border:0;box-shadow:none}
.subh img{height:auto;width:auto;max-width:100%;zoom:4;image-rendering:pixelated;display:block}
.subh{margin:0 0 8px;font-size:0}
@media (max-width:560px){
  h1.lock{gap:9px}
  h1.lock .face{width:88px;height:88px;box-shadow:3px 3px 0 #000}
  .bar .logo .word{width:153px}
  .subh img{zoom:3}
}

/* ---- HD items: sharp vector art inside the pixel interface ---- */
.hd[data-i]{display:block;width:100%;height:100%;font-style:normal;position:relative}
.hd[data-i] img,.hd[data-i] b{display:block;width:100%;height:100%;filter:drop-shadow(0 2px 1.5px rgba(0,0,0,.45));transition:transform .28s cubic-bezier(.2,1.5,.4,1)}
.hd[data-i] b{position:absolute;inset:0;background-size:2400% 100%;background-repeat:no-repeat;background-position:0 0;visibility:hidden}
.dio .hd[data-i]:hover img,.dio .hd[data-i]:hover b,:is(.slot,.hotbar a,.ctabs a,.bar nav a.st,.also,.item,.rank,.card,.dicon):hover .hd[data-i] img,:is(.slot,.hotbar a,.ctabs a,.bar nav a.st,.also,.item,.rank,.card,.dicon):hover .hd[data-i] b{transform:translateY(-6%) scale(1.12)}
@keyframes hdturn{to{background-position:104.3478% 0}}
@media (prefers-reduced-motion:reduce){.hd[data-i] b{display:none}.hd[data-i] img{transition:none;visibility:visible!important}}
/* sizes */
.slot{padding:8%}
.slot .hd{width:100%;height:100%}
.hotbar a .hd{width:32px;height:32px}
.ctabs a .hd{width:30px;height:30px;flex:none}
.bar nav a.st .hd{width:22px;height:22px;display:inline-block}
.alsoic .hd{width:50px;height:50px;background:var(--slot);box-shadow:inset 2px 2px 0 var(--slot-lo),inset -2px -2px 0 #fff;padding:4px}
.item .top .hd{width:84px;height:84px;flex:none}
.item.pass>.hd{width:min(42%,270px);height:auto;aspect-ratio:1;flex:none}
.dio .hd.it{position:absolute;z-index:3;width:44px;height:44px;margin-top:-10px}
.rank{position:relative}
.rankart.hd{position:absolute;right:16px;top:14px;width:82px;height:82px}
.ranks.mini .rankart.hd{width:76px;height:76px}
.dicon{display:inline-block;width:44px;height:44px;vertical-align:-10px;margin-right:8px}
@media (max-width:560px){.rankart.hd{width:66px;height:66px}.item.pass>.hd{width:70%}}

/* nothing decorative may widen the page on a phone */
html,body{overflow-x:clip}
.toast{display:none;transform:none;transition:none}
.toast.on{display:flex;animation:toastin .35s ease-out}
@keyframes toastin{from{opacity:0;translate:40px 0}to{opacity:1;translate:0 0}}

/* ---- basket and username box ---- */
.mcb.cartpill{display:none;position:fixed;right:12px;bottom:76px;z-index:30;cursor:pointer}
.mcb.cartpill.show{display:inline-block}
.shopdlg{position:fixed;inset:0;z-index:200;display:none;align-items:center;justify-content:center;padding:16px;background:rgba(0,0,0,.72)}
.shopdlg.open{display:flex}
.shopdlg .gui{width:min(520px,100%);max-height:calc(100vh - 32px);overflow:auto}
.shopdlg h3{font-size:38px;line-height:1;margin:0 0 6px}
.shopdlg p{margin:0 0 12px;font-size:17px;line-height:1.35}
.shopdlg label{display:block;font:400 22px/1.1 var(--label);margin:0 0 5px}
.shopdlg input[type=text]{width:100%;font:400 26px/1 var(--label);color:#fff;background:#111;border:0;box-shadow:inset 3px 3px 0 #000,inset -3px -3px 0 #6E6E6E;padding:10px 12px;border-radius:0}
.shopdlg input[type=text]:focus{outline:3px solid #123C9C;outline-offset:0}
.shopdlg input[type=text]::placeholder{color:#BFBFBF}
.shopdlg .giftrow{display:flex;align-items:center;gap:9px;margin:12px 0 0;cursor:pointer}
.shopdlg .giftrow input{width:20px;height:20px;margin:0;accent-color:#2E9E2E}
#buymodal-payerwrap{margin-top:12px}
#buymodal-payerwrap[hidden]{display:none}
.shopdlg .err{color:#A80000;font:400 21px/1.15 var(--label);min-height:24px;margin-top:8px}
.shopdlg .acts{display:flex;gap:10px;margin-top:12px}
.shopdlg .acts .mcb{flex:1;cursor:pointer;text-align:center}
.shopdlg .fine{margin:12px 0 0;font-size:15px}
.cartrow{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:3px solid #8B8B8B;font:400 23px/1.1 var(--label)}
.cartrow .nm{flex:1;min-width:0}
.cartrow .qty{display:flex;align-items:center;gap:6px}
.cartrow button{width:30px;height:30px;padding:0;font:400 22px/1 var(--label);color:#fff;background:#6E6E6E;border:0;box-shadow:inset 2px 2px 0 #AAA,inset -2px -2px 0 #3F3F3F;cursor:pointer}
.cartrow button:hover{background:#8390C4}
.cartrow .pr{min-width:68px;text-align:right}
.cartempty{padding:14px 0;font:400 23px/1.2 var(--label)}
.carttotal{display:flex;justify-content:space-between;padding:12px 0 2px;font:400 30px/1 var(--big)}
.buyresult{display:none;margin:0 0 14px;padding:10px 14px;font:400 24px/1.2 var(--label);color:#fff;background:#000;border:3px solid #6E6E6E}
.buyresult.ok{border-color:#55FF55;color:#55FF55}
.buyresult.cancelled{border-color:var(--yellow);color:var(--yellow)}
.lbnote{margin:10px 0 0;font:400 21px/1.2 var(--label);color:#fff}
.sups .v small{margin-left:8px}
@media (max-width:560px){.shopdlg .acts{flex-direction:column-reverse}.cartrow{flex-wrap:wrap}.cartrow .nm{flex:1 1 100%}.cartrow .pr{margin-left:auto}}
.dio .phead{position:absolute;z-index:3;width:48px;height:48px;image-rendering:pixelated}

/* ---- after your first round ---- */
.keepgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px;margin-top:14px}
.keepgrid .item .top .hd{width:64px;height:64px}
.keepgrid .item h4{font-size:32px}
.keepgrid .item>a{font:400 22px/1.1 var(--label)}
/* ---- trailer ---- */
.shopdlg.vid .gui{width:min(960px,100%)}
.vframe{aspect-ratio:16/9;background:#000;border:3px solid #000;margin-top:8px}
.vframe iframe{display:block;width:100%;height:100%;border:0}
.storenote a{color:#fff;text-decoration:underline}
@media (max-width:560px){
  .keepgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .keepgrid .gui{padding:12px 10px;text-align:center}
  .keepgrid .item .top{flex-direction:column;gap:6px;margin-bottom:6px}
  .keepgrid .item h4{font-size:27px}
  .keepgrid .item p{display:none}
}

/* ---- classes page ---- */
#classlist{margin-top:14px}
.cunlock{margin:0 0 14px;font-size:17px;line-height:1.4;color:#fff;text-shadow:1px 1px 0 #000}
.cunlock a{color:#fff;text-decoration:underline}
.ccards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,380px),1fr));gap:14px}
.ccard{scroll-margin-top:70px;height:auto}
.ccard .top .hd{width:72px;height:72px}
.ccard h3{font-size:34px;line-height:1;margin:0 0 6px;color:#2A2A2A}
.ccard .mcb{font-size:19px;padding:6px 11px 7px;cursor:pointer}
.ccard p{flex:none;margin:0 0 8px;font-size:16px;line-height:1.4}
.ccard p:last-child{margin-bottom:0}
.ccard .cd{font-weight:700;white-space:nowrap}

/* ---- leaderboards page ---- */
.lbshell{display:grid;grid-template-columns:minmax(0,320px) minmax(0,1fr);gap:18px;align-items:start}
.lbshell.down{grid-template-columns:minmax(0,1fr)}
.lbmode{display:flex;gap:6px;margin-bottom:6px}
.lbmode .mcb{flex:1;font-size:21px;padding:8px 6px 9px;cursor:pointer;text-align:center}
.lbgroup{font:400 21px/1 var(--label);color:#2A2A2A;margin:12px 0 5px}
.lbb{display:flex;align-items:center;gap:9px;width:100%;font:400 23px/1.1 var(--label);color:#2A2A2A;background:none;border:0;padding:4px 7px;cursor:pointer;text-align:left}
.lbb:hover{background:#B5B5B5}
.lbb.on{background:#2A2A2A;color:#fff}
.lbb img,.lbb .hd[data-i]{width:30px;height:30px;flex:none;image-rendering:auto}
#class-pick{grid-template-columns:repeat(6,minmax(0,1fr));display:grid;gap:0}
#class-pick .slot.on{outline:3px solid #fff;outline-offset:-3px;background:#B5B5B5}
.lbmain{padding:10px}
.lbhead{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:10px;padding:2px 2px 9px}
.lbhead h3{font-size:38px;line-height:1;color:var(--yellow)}
.lbhead p{margin:3px 0 0;font:400 21px/1.15 var(--label);color:#fff}
.lbhead input{width:min(240px,100%);font:400 22px/1 var(--label);color:#fff;background:#222;border:0;box-shadow:inset 2px 2px 0 #000,inset -2px -2px 0 #6E6E6E;padding:8px 10px;border-radius:0}
.lbhead input::placeholder{color:#BFBFBF}
.lbhead input:focus{outline:3px solid var(--yellow)}
.lbladder{display:flex;flex-wrap:wrap;gap:6px 14px;padding:0 2px 9px;font:400 21px/1 var(--label)}
.lbladder span{display:inline-flex;align-items:center;gap:5px}
.lbladder[hidden]{display:none}
.lbladder img,.tierhead img,.tierb img{width:22px;height:22px}
.lbladder small{color:#fff;font-size:18px}
.lbrows{max-height:660px;overflow-y:auto}
.lbrows li{font-size:24px;padding:3px 8px 3px 3px;gap:8px}
.lbrows .lbrow img.px{width:24px;height:24px}
.lbrow.can{cursor:pointer}
.lbrow.can:hover,.lbrow.can:focus{background:rgba(255,255,255,.3);outline:0}
.lbrow.first .n{color:var(--gold)}
.lbrow.me{box-shadow:inset 0 0 0 2px var(--yellow)}
.lbrow .rk{min-width:32px;text-align:right;color:#fff}
.lbrow .tag{font-size:19px;color:#FFAA00;white-space:nowrap}
.lbrow .tierb{display:inline-flex;align-items:center;gap:5px;font-size:20px;white-space:nowrap}
.tab li.tierhead{background:none;margin-top:10px;font-size:26px;color:var(--tc);gap:7px}
.tab li.tierhead:first-child{margin-top:0}
.tierhead small{font-size:19px;color:#fff}
.lbempty{margin:0;padding:18px 6px;font:400 24px/1.2 var(--label);color:#fff}
#lb-upd{margin-top:12px}
.pcard .gui{width:min(720px,100%)}
.phead{display:flex;align-items:center;gap:14px;margin-bottom:12px}
.phead img{width:72px;height:72px;flex:none}
.phead>div{flex:1;min-width:0}
.phead h3{font-size:42px;overflow-wrap:anywhere}
.phead p{margin:0;font-size:16px}
.phead .mcb{cursor:pointer;font-size:21px;padding:8px 13px 9px}
.pgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.pstat{background:#373737;padding:7px 8px 8px;color:#fff}
.pstat b{display:block;font:400 28px/1 var(--big)}
.pstat span{font:400 18px/1.05 var(--label);display:block;margin-top:3px}
.pcard h4{font:400 30px/1 var(--big);margin:14px 0 6px;color:#2A2A2A}
.pranks{display:flex;flex-wrap:wrap;gap:5px}
.prank{background:#8B8B8B;color:#fff;font:400 20px/1 var(--label);padding:5px 7px 6px;text-shadow:1px 1px 0 #3F3F3F}
.prank b{font-weight:400}
.prank.top{background:#2E9E2E}
.pbar{display:grid;grid-template-columns:34px minmax(0,130px) minmax(40px,1fr) auto;align-items:center;gap:8px;padding:2px 0;font:400 21px/1.1 var(--label)}
.pbar .ci{width:30px;height:30px;display:block}
.pbar .ci img,.pbar .ci .hd[data-i]{width:30px;height:30px}
.pbar .tr{height:12px;background:#373737;display:block}
.pbar .tr i{display:block;height:100%;background:#2E9E2E}
@media (max-width:900px){.lbshell{grid-template-columns:minmax(0,1fr)}.lbrows{max-height:70vh}#class-pick{grid-template-columns:repeat(7,minmax(0,1fr))}
  /* phones and small tablets: the boards become one swipeable row, so the results stay near the top */
  .lbside{padding:10px}
  #board-list,#class-metrics{display:flex;gap:5px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
  #board-list .lbgroup{display:none}
  #board-list .lbbs{display:contents}
  #board-list .lbb,#class-metrics .lbb{flex:none;width:auto;white-space:nowrap;background:#A5A5A5;padding:7px 10px 8px}
  #board-list .lbb.on,#class-metrics .lbb.on{background:#2A2A2A}
  #board-list .lbb img,#board-list .lbb .hd{display:none}
}
@media (max-width:560px){.pgrid{grid-template-columns:repeat(3,minmax(0,1fr))}.lbrow .tag{display:none}.pbar{grid-template-columns:34px minmax(0,1fr) auto}.pbar .tr{display:none}.phead img{width:52px;height:52px}.phead h3{font-size:31px;overflow-wrap:normal}.phead .mcb{padding:6px 9px 7px;font-size:19px}.lbb{font-size:21px}.lbhead input{width:100%}}

/* ======== quality pass ======== */
/* one rule for panels: grey chest GUI for things you click or buy, the game's own tooltip for things you read */
.tab,.maps,.chat,.faq.faq2,.cpanel{background:#100010;border:2px solid;border-image:linear-gradient(#5000FF,#28007F) 1;box-shadow:0 0 0 3px #100010}
.tab .hd,.lbhead h3{color:var(--yellow)}
.band-note{padding-top:66px;padding-bottom:26px}
.grasswrap + .band-note{padding-top:22px}
/* top menu */
.bar .wrap{flex-wrap:nowrap}
.bar nav a.mo,.navmenu{display:none}
.navcopy{font-size:19px;padding:6px 11px 7px;white-space:nowrap;cursor:pointer;flex:none}
.bar.nologo .logo{visibility:hidden}
.hotbar{transition:opacity .2s,transform .2s}
.hotbar.away{opacity:0;pointer-events:none;transform:translate(-50%,130%)}
.onlyphone{display:none}
/* banners on the inner pages */
.hero.sub{padding:20px 0 26px;min-height:212px}
.subh img{margin-left:-5px}
.hero.sub .pitch a{color:#0B2A8A;text-decoration:underline}
.subscene{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:min(1320px,100%);display:flex;justify-content:flex-end;padding:0 24px;pointer-events:none;z-index:0}
.subscene .dio{zoom:.8;pointer-events:auto}
/* votes */
.votes{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
/* class viewer */
.armoury{align-items:start}
.armoury>.fw{position:sticky;top:calc(var(--barh,50px) + 58px)}
.chest .slot img{width:100%;height:100%;object-fit:contain;display:block}
.stage{background:linear-gradient(rgba(0,0,0,.22),rgba(0,0,0,.22)),url(../mc/block/stone_bricks.png);background-size:72px}
.dicon img{width:100%;height:100%;object-fit:contain}
/* class cards */
.ccard .top .port{width:96px;height:96px;flex:none;image-rendering:auto;object-fit:contain}
/* store */
.item .mcb{align-self:stretch;text-align:center;font-size:24px;padding:9px 13px 10px}
.pile{position:relative;display:block;width:96px;height:84px;flex:none}
.item .top .pile .hd[data-i],.item .top .pile img{position:absolute;width:56px;height:56px}
.pile.n1 .hd[data-i],.pile.n1 img{left:6px;top:0;width:84px!important;height:84px!important}
.pile>:nth-child(1){left:0;bottom:0}.pile>:nth-child(2){left:36px;bottom:0}.pile>:nth-child(3){left:18px;bottom:26px}.pile>:nth-child(4){left:-6px;bottom:30px}.pile>:nth-child(5){left:42px;bottom:30px}
.pile.n3>:nth-child(1){left:6px}.pile.n3>:nth-child(2){left:40px}.pile.n3>:nth-child(3){left:22px;bottom:28px}
/* maps */
.mapsort{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:14px;font:400 22px/1 var(--label);color:#fff}
.mapsort .mcb{font-size:20px;padding:6px 11px 7px;cursor:pointer}
.maps{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));columns:auto;gap:3px 12px;margin-top:10px;padding:10px}
.maps div{display:flex;justify-content:space-between;align-items:baseline;gap:10px;background:rgba(255,255,255,.08);padding:3px 8px 4px}
.maps div[hidden]{display:none}
.maps small{margin-left:0;text-align:right}
/* screenshots */
.vthumb{position:relative;display:block;width:100%;padding:0;border:3px solid #000;box-shadow:0 0 0 2px #6E6E6E;background:#000;cursor:pointer;aspect-ratio:16/9;overflow:hidden}
.vthumb img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s}
.vthumb:hover img{transform:scale(1.03)}
.vthumb .mcb{position:absolute;left:12px;bottom:12px}
.zoomable{cursor:zoom-in}
#trailerframe>img{display:block;width:100%;height:100%;object-fit:contain}
/* leaderboards: the page scrolls, not the list */
.lbrows{max-height:none;overflow:visible}
.lbside{position:sticky;top:calc(var(--barh,50px) + 10px)}
.lbhead{position:sticky;top:var(--barh,50px);z-index:3;background:#100010;padding-top:8px;margin-top:-8px}
/* 404 */
.nfband{min-height:42vh}
.nfwrap{position:relative;min-height:170px}
.nfhang{position:absolute!important;right:60px;top:-90px}

@media (max-width:1000px){
  .hotbar{display:flex!important;left:0;right:0;bottom:0;transform:none;justify-content:center;border-width:3px 0 0;width:100%;padding:2px 0}
  .hotbar.away{transform:none;opacity:1;pointer-events:auto}
  .hotbar a{width:38px;height:38px}
  .hotbar a img,.hotbar a .hd[data-i]{width:28px;height:28px}
  body{padding-bottom:48px}
  .bar .wrap{flex-wrap:wrap;gap:6px 8px;padding-top:6px;padding-bottom:6px}
  .bar .logo{flex:1}
  .bar.nologo .logo{visibility:visible}
  .navmenu{display:block;font-size:19px;padding:6px 11px 7px;cursor:pointer;flex:none}
  .bar nav,.bar nav a.mo{display:none}
  .bar.open nav{display:grid!important;order:3;flex:0 0 100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;overflow:visible;white-space:normal;padding:6px 0 4px}
  .bar.open nav a,.bar.open nav a.mo{display:block;font-size:23px;padding:6px 2px}
  /* home: the footage comes straight after the logo */
  .herogrid{display:flex;flex-direction:column;gap:12px}
  .herogrid>div:first-child{display:contents}
  .herogrid .lock{order:1}.herogrid .fw{order:2;width:100%}.hero .pitch{order:3;margin-bottom:0}.herogrid .srv{order:4}.herogrid .phonenote{order:5;margin:0}.herogrid .heroacts{order:6;margin-top:0}
  .onlyphone{display:inline-block}
  .herogrid .fw{margin-bottom:92px}
  .hero .lock{display:flex;align-items:center;gap:10px;margin:0}
  .hero .lock .face{width:76px;height:76px}
  .hero .lock .word{height:76px;width:auto}
  .mocktag{bottom:54px}
  .chest .slot{padding:4px}
  .chest .slot img{width:100%;height:100%}
  /* class viewer: stage first, slots as one strip, words after */
  .armoury{gap:8px}
  .armoury>.doll{display:contents}
  .armoury .stage{order:1;width:100%;min-height:300px}
  .armoury>.fw{order:2;min-width:0}
  .chest{position:static;display:flex;overflow-x:auto;padding:8px;gap:0}
  .chest h4{display:none}
  .chest .slots{display:flex!important;flex:none;grid-template-columns:none}
  .chest .slot{width:50px;flex:none}
  .armoury .nm,.armoury .pas,.armoury .ab,.armoury .acts{order:3;color:#fff;margin-left:2px}
  .armoury .pas{color:#fff}
  .lbside,.lbhead,.chest,.armoury>.fw{position:static}
  .subscene{display:none}
  .hero.sub{min-height:0}
}
@media (max-width:640px){
  .tabs{grid-template-columns:minmax(0,1fr)!important}
  .maps{grid-template-columns:minmax(0,1fr)}
  .pile{zoom:.86}
}
/* store: only on the bundles that really are cheapest per item; sits inside the card because .gui clips anything past its edge */
.item:has(.bestv){position:relative}
.bestv{position:absolute;top:8px;right:8px;z-index:2;font:400 19px/1 var(--label);color:#fff;background:#2E9E2E;border:3px solid #000;box-shadow:inset 2px 2px 0 #8CFF8C,inset -2px -2px 0 #145214;padding:4px 9px 5px;text-shadow:1px 1px 0 #145214;white-space:nowrap}

@media(max-width:1360px){.item .top>div:has(.bestv){display:flex;flex-direction:column;align-items:flex-start}.item .top>div:has(.bestv) .pr{order:1}.bestv{position:static;order:2;margin-top:6px}}

/* ---- the hotbar, bigger and always on screen (owner, 5 Nov: too hard to notice) ---- */
.hotbar{bottom:8px;background:rgba(16,16,16,.94);border:4px solid #000;box-shadow:0 0 0 2px #8B8B8B,inset 0 0 0 2px #3A3A3A;padding:3px}
.hotbar,.hotbar.away{opacity:1;pointer-events:auto;transform:translateX(-50%)}
.hotbar a{width:66px;height:66px;border:3px solid transparent;box-shadow:1px 0 0 #4A4A4A}
.hotbar a:last-child{box-shadow:none}
.hotbar a img,.hotbar a .hd,.hotbar a .hd[data-i]{width:48px;height:48px}
.hotbar a i{right:4px;bottom:2px;font-size:20px;text-shadow:2px 2px 0 #000}
.hotbar a.on{border-color:#fff;background:rgba(255,255,255,.14)}
.hbname{bottom:94px}
body{padding-bottom:92px}
.mocktag{bottom:98px}
/* the arrow pointing at it */
.hbhint{position:fixed;left:50%;bottom:92px;transform:translateX(-50%);z-index:24;display:flex;flex-direction:column;align-items:center;gap:6px;background:none;border:0;padding:0;cursor:pointer;animation:hbbob .9s steps(2,jump-none) infinite alternate}
.hbhint span{font:400 23px/1.1 var(--label);color:#fff;white-space:nowrap;text-shadow:2px 2px 0 #000;background:#100010;border:2px solid;border-image:linear-gradient(#5000FF,#28007F) 1;box-shadow:0 0 0 3px #100010;padding:5px 10px 6px}
.hbhint svg{width:44px;height:32px;fill:#FFE24A;stroke:#000;stroke-width:.5;overflow:visible;paint-order:stroke}
@keyframes hbbob{from{translate:0 -5px}to{translate:0 5px}}
.hbname.on ~ .hbhint{visibility:hidden}
@media (prefers-reduced-motion:reduce){.hbhint{animation:none}}
@media (max-width:1000px){
  .hotbar,.hotbar.away{left:0;right:0;bottom:0;transform:none;width:100%;border-width:4px 0 0;box-shadow:inset 0 2px 0 #3A3A3A;padding:2px 0}
  .hotbar a{flex:1 1 0;width:auto;max-width:72px;height:auto;aspect-ratio:1;box-shadow:1px 0 0 #4A4A4A}
  .hotbar a img,.hotbar a .hd,.hotbar a .hd[data-i]{width:72%;height:72%}
  .hotbar a i{right:2px;bottom:0;font-size:15px}
  body{padding-bottom:calc(min(100vw / 9,72px) + 14px)}
  .mocktag{bottom:calc(min(100vw / 9,72px) + 16px)}
  .hbhint{bottom:calc(min(100vw / 9,72px) + 10px);max-width:94vw}
  .hbhint span{font-size:21px}
  .hbhint svg{width:34px;height:25px}
}

/* store: the ten limited hats, as a page section (was one picture in the old site's style) */
.hathead{margin-top:22px;font-size:40px;color:#fff;text-shadow:3px 3px 0 #3F3F3F}
.hatsub{color:#fff;margin:2px 0 12px;font-size:18px}
.hatgrid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.hatcard{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;background:#100010;border:2px solid;border-image:linear-gradient(#5000FF,#28007F) 1;padding:12px 8px 12px}
.hatcard img{width:100%;max-width:130px;aspect-ratio:1;object-fit:contain}
.hatcard b{font:400 24px/1.05 var(--label);color:#fff}
.hatcard span{font:400 18px/1.1 var(--label)}
.hatcard .k-c{color:#D98CFF}
.hatcard .k-h{color:#FFB347}
.hatcard .k-e{color:#8CE05A}
@media (max-width:760px){.hatgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.hathead{font-size:34px}}

/* Items move by themselves while on screen (js/hd.js adds .auto): a gentle float and a full turn every 9 seconds.
   The float uses translate and rotate, not transform, so it can't fight the hover size below. */
@media (prefers-reduced-motion:no-preference){
  .hd.auto img{animation:hdfloat 4s ease-in-out infinite;animation-delay:var(--f,0s)}
  .hd.auto.ready img{visibility:hidden}
  .hd.auto.ready b{visibility:visible;animation:hdauto 9s infinite,hdfloat 4s ease-in-out infinite;animation-delay:var(--d,0s),var(--f,0s)}
}
@keyframes hdfloat{0%,100%{translate:0 2%;rotate:-1.5deg}50%{translate:0 -4%;rotate:1.5deg}}
@keyframes hdauto{0%{background-position:0 0;animation-timing-function:steps(24)}26%{background-position:104.3478% 0}26.01%,100%{background-position:0 0}}
/* hover: the item just gets a little bigger, wherever it is */
.hd[data-i]:hover img,.hd[data-i]:hover b{transform:scale(1.18)}
.socials{margin:0 0 18px;color:#fff;text-shadow:1px 1px 0 #000}
.socials a{color:var(--yellow)}
/* ---- special rounds page ---- */
.rhow{max-width:820px}
.rhow p{margin:0 0 10px;font-size:18px;line-height:1.4}
.rhow p:last-child{margin-bottom:0}
.ccard .rline{font-size:17px;line-height:1.3;font-weight:700;color:#2A2A2A;margin:0}
#big .ccards,#speed .ccards{align-items:start}
.ccard .rmin{display:inline-block;margin-top:7px;font:400 18px/1 var(--label);color:#fff;background:#2A2A2A;border:2px solid #000;padding:3px 8px 4px}
