.info-page .wrap{
  max-width:980px;
  padding-top:36px;
}

.info-hero{
  text-align:center;
  margin-bottom:28px;
}

.info-toc{
  position:sticky;
  top:10px;
  z-index:6;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  margin:0 0 28px;
  padding:10px;
  background:rgba(12,16,22,0.88);
  border:3px solid var(--stone-dark);
  box-shadow:0 5px 0 rgba(0,0,0,0.3);
  backdrop-filter:blur(6px);
}

.toc-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 10px;
  border:2px solid var(--stone);
  background:var(--panel);
  color:var(--ink-dim);
  font-family:'Press Start 2P', monospace;
  font-size:8px;
  letter-spacing:0.3px;
  cursor:pointer;
  transition:border-color .15s ease, color .15s ease, transform .12s ease;
}
.toc-btn:hover,
.toc-btn.is-active{
  border-color:var(--gold);
  color:var(--gold);
  transform:translateY(-1px);
}

.info-section{
  position:relative;
  margin-bottom:22px;
  background:var(--panel);
  border:3px solid var(--stone-dark);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.05),
    0 6px 0 rgba(0,0,0,0.32);
  overflow:hidden;
  scroll-margin-top:84px;
}

.info-section::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:6px;
  background:var(--gold);
}

.info-section.survival::before{background:var(--ok);}
.info-section.claims::before{background:var(--pro);}
.info-section.farms::before{background:var(--lava-hot);}
.info-section.commands::before{background:var(--twitch);}
.info-section.join::before{background:var(--legend);}
.info-section.rules::before{background:var(--off);}

.section-head{
  display:flex;
  align-items:center;
  gap:14px;
  padding:18px 20px 14px;
  border-bottom:3px solid var(--stone-dark);
  background:linear-gradient(90deg, rgba(255,255,255,0.03), transparent 55%);
}
.section-head[data-section-toggle]{
  cursor:pointer;
  user-select:none;
}
.section-head[data-section-toggle]:hover h2{
  color:var(--gold);
}
.info-section:not(.is-open) > .section-head{
  border-bottom:none;
}
.section-chevron{
  width:12px;
  height:12px;
  flex-shrink:0;
  border-right:2px solid var(--ink-dim);
  border-bottom:2px solid var(--ink-dim);
  transform:rotate(-45deg);
  transition:transform .15s ease, border-color .15s ease;
  margin:0 2px 0 4px;
}
.info-section.is-open > .section-head .section-chevron{
  transform:rotate(45deg);
  border-color:var(--gold);
  margin-top:2px;
}
.section-body[hidden]{display:none !important;}

.section-icon{
  width:42px;
  height:42px;
  flex-shrink:0;
  image-rendering:pixelated;
}

.section-head h2{
  font-family:'Press Start 2P', monospace;
  font-size:clamp(11px, 2vw, 14px);
  line-height:1.5;
  color:var(--ink);
}

.section-head p{
  margin-top:4px;
  color:var(--ink-dim);
  font-size:18px;
}

.section-body{
  padding:18px 20px 20px;
}

.stat-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}

.stat-card{
  padding:14px 12px;
  background:rgba(0,0,0,0.22);
  border:2px solid var(--stone);
  transition:border-color .15s ease, transform .12s ease;
}
.stat-card:hover{
  border-color:var(--gold);
  transform:translateY(-1px);
}
.stat-label{
  font-family:'Press Start 2P', monospace;
  font-size:8px;
  color:var(--gold);
  letter-spacing:0.5px;
  margin-bottom:8px;
}
.stat-value{
  color:var(--ink);
  font-size:22px;
  line-height:1.25;
}

.subblock{
  margin-top:16px;
  padding-top:14px;
  border-top:2px dashed rgba(255,255,255,0.08);
}
.subblock:first-child{margin-top:0;padding-top:0;border-top:none;}

.sub-title{
  font-family:'Press Start 2P', monospace;
  font-size:10px;
  color:var(--pro);
  margin-bottom:10px;
  line-height:1.5;
}

.cmd-search{
  display:grid;
  gap:6px;
  margin-bottom:14px;
}
.cmd-search-label{
  font-family:'Press Start 2P', monospace;
  font-size:8px;
  color:var(--ink-dim);
  letter-spacing:0.4px;
}
.cmd-search input{
  width:100%;
  padding:12px 12px;
  border:2px solid var(--stone);
  background:rgba(0,0,0,0.28);
  color:var(--ink);
  font:inherit;
  font-size:20px;
}
.cmd-search input::placeholder{color:var(--ink-dim);}
.cmd-search input:focus{
  outline:none;
  border-color:var(--gold);
}
.cmd-search-empty{
  margin:0 0 12px;
  color:var(--ink-dim);
  font-size:18px;
}
.cmd-search-empty[hidden]{display:none !important;}

.cmd-fold{
  border:2px solid var(--stone);
  background:rgba(0,0,0,0.16);
  padding:0;
  margin-top:10px;
}
.cmd-fold:first-of-type{margin-top:0;}
.cmd-fold.subblock{
  padding-top:0;
  border-top:2px solid var(--stone);
}
.cmd-fold-head{
  display:flex;
  align-items:center;
  gap:8px;
  padding:4px;
}
.cmd-fold-toggle{
  appearance:none;
  flex:1;
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 10px;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  text-align:left;
  cursor:pointer;
}
.cmd-fold-toggle:hover .sub-title,
.cmd-fold-toggle:focus-visible .sub-title{
  color:var(--gold);
}
.cmd-fold-toggle:focus-visible{outline:none;}
.cmd-fold-chevron{
  width:10px;
  height:10px;
  flex-shrink:0;
  border-right:2px solid var(--pro);
  border-bottom:2px solid var(--pro);
  transform:rotate(-45deg);
  transition:transform .15s ease;
  margin-top:-2px;
}
.cmd-fold.is-open .cmd-fold-chevron{
  transform:rotate(45deg);
  margin-top:0;
}
.cmd-fold-head .sub-title{
  margin:0;
  flex:1;
  min-width:0;
}
.cmd-fold-count{
  font-family:'Press Start 2P', monospace;
  font-size:8px;
  color:var(--ink-dim);
  border:2px solid var(--stone);
  padding:4px 6px;
  min-width:28px;
  text-align:center;
}
.cmd-fold-body{
  padding:0 10px 12px;
}
.cmd-fold-body[hidden]{display:none !important;}
.cmd-fold-body .note{margin-top:10px;}
.cmd-fold-head .share-anchor{
  margin-right:6px;
}

.list{
  list-style:none;
  display:grid;
  gap:8px;
}
.list li{
  display:flex;
  gap:10px;
  align-items:flex-start;
  color:var(--ink-dim);
  line-height:1.3;
}
.list li::before{
  content:"";
  width:8px;height:8px;
  margin-top:8px;
  flex-shrink:0;
  background:var(--gold);
  box-shadow:2px 2px 0 rgba(0,0,0,0.35);
}
.list li b{color:var(--ink);font-weight:400;}

.split-lists{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.list-box{
  padding:14px 12px;
  border:2px solid var(--stone);
  background:rgba(0,0,0,0.18);
}
.list-box.ok{border-color:rgba(143,255,102,0.35);}
.list-box.bad{border-color:rgba(255,107,107,0.35);}
.list-box h3{
  font-family:'Press Start 2P', monospace;
  font-size:9px;
  margin-bottom:10px;
  line-height:1.5;
}
.list-box.ok h3{color:var(--ok);}
.list-box.bad h3{color:var(--off);}
.list-box .list li::before{width:7px;height:7px;}
.list-box.ok .list li::before{background:var(--ok);}
.list-box.bad .list li::before{background:var(--off);}

.cmd-grid{
  display:grid;
  gap:8px;
}
.cmd-row{
  display:grid;
  grid-template-columns:minmax(140px, 220px) 1fr;
  gap:10px;
  align-items:center;
  padding:10px 10px;
  background:rgba(0,0,0,0.2);
  border:2px solid var(--stone);
}
.cmd{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  width:100%;
  padding:8px 10px;
  border:2px solid #3a2a5a;
  background:rgba(145,70,255,0.12);
  color:#d8c2ff;
  font-family:'Press Start 2P', monospace;
  font-size:8px;
  cursor:pointer;
  transition:border-color .15s ease, color .15s ease, transform .12s ease;
}
.cmd:hover{
  border-color:var(--gold);
  color:var(--gold);
  transform:translateY(-1px);
}
.cmd.is-copied{
  border-color:var(--ok);
  color:var(--ok);
}
.cmd-desc{color:var(--ink-dim);font-size:18px;line-height:1.25;}

.note{
  margin-top:12px;
  padding:12px;
  border:2px solid rgba(240,193,75,0.35);
  background:rgba(240,193,75,0.08);
  color:var(--ink-dim);
  font-size:18px;
}
.note b{color:var(--gold);font-weight:400;}

.join-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.join-card{
  padding:16px 14px;
  border:3px solid var(--stone-dark);
  background:rgba(0,0,0,0.22);
  cursor:pointer;
  text-align:center;
  transition:border-color .15s ease, transform .12s ease;
  font:inherit;
  color:inherit;
  width:100%;
}
.join-card:hover{
  border-color:var(--pro);
  transform:translateY(-1px);
}
.join-card.is-copied{border-color:var(--ok);}
.join-label{
  font-family:'Press Start 2P', monospace;
  font-size:9px;
  color:var(--gold);
  margin-bottom:10px;
}
.join-value{
  font-family:'Press Start 2P', monospace;
  font-size:clamp(10px, 2vw, 13px);
  line-height:1.5;
  color:var(--ink);
  word-break:break-all;
}
.join-hint{
  margin-top:8px;
  font-size:16px;
  color:var(--ink-dim);
}
.join-card.is-copied .join-hint{color:var(--ok);}

.mods{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:14px;
}
.mod-card{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:14px;
  border:2px solid var(--stone);
  background:rgba(0,0,0,0.18);
  transition:border-color .15s ease, transform .12s ease;
}
.mod-card:hover{
  border-color:var(--ok);
  transform:translateY(-1px);
}
.mod-name{
  font-family:'Press Start 2P', monospace;
  font-size:9px;
  color:var(--ink);
  line-height:1.45;
}
.mod-desc{color:var(--ink-dim);font-size:17px;}
.mod-link{
  font-family:'Press Start 2P', monospace;
  font-size:8px;
  color:var(--pro);
}

.pixel-deco{
  position:absolute;
  right:12px;
  top:12px;
  width:28px;height:28px;
  opacity:0.55;
  image-rendering:pixelated;
  pointer-events:none;
}

@media (max-width:800px){
  .stat-grid,
  .split-lists,
  .join-grid,
  .mods{grid-template-columns:1fr;}
  .cmd-row,
  .cmd-row.has-share-anchor{grid-template-columns:1fr auto;}
  .cmd-row.has-share-anchor .cmd-desc{grid-column:1 / -1;order:3;}
  .info-toc{top:0;border-left:none;border-right:none;}
}
