*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;background:#000;color:#fff;font-family:ui-sans-serif,system-ui,-apple-system,sans-serif;font-weight:300;font-size:16px}

[hidden]{display:none!important}

.shell{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.center{
  width:100%;
  max-width:600px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:20px;
}

.title{
  font-size:24px;
  font-weight:300;
  letter-spacing:0.05em;
  text-align:center;
  margin-bottom:20px;
}

.levelSelect{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  margin-bottom:20px;
}

.levelBtn{
  background:transparent;
  border:1px solid #333;
  color:#666;
  padding:8px 16px;
  font-size:14px;
  font-weight:300;
  cursor:pointer;
  transition:all 0.2s;
}

.levelBtn:hover{
  border-color:#666;
  color:#999;
}

.levelBtn.selected{
  border-color:#fff;
  color:#fff;
}

.formButtons{
  display:flex;
  gap:10px;
  justify-content:center;
}

.btnSkip{
  background:transparent;
  border-color:#555;
  color:#888;
}

.btnSkip:hover{
  border-color:#888;
  color:#aaa;
}

.fragment{
  width:100%;
  height:400px;
  background-color:#000;
  background-repeat:no-repeat;
  border:1px solid #333;
}

.timer{
  font-size:32px;
  font-weight:300;
  letter-spacing:0.1em;
  font-variant-numeric:tabular-nums;
  margin-top:20px;
}

.progress{
  font-size:20px;
  font-weight:300;
  letter-spacing:0.1em;
  margin-bottom:20px;
}

.codeForm{
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:center;
  width:100%;
  max-width:400px;
}

.codeInput{
  flex:1;
  background:#000;
  border:1px solid #333;
  color:#fff;
  padding:12px 16px;
  font-size:18px;
  font-weight:300;
  letter-spacing:0.2em;
  text-align:center;
  outline:none;
}

.codeInput:focus{
  border-color:#666;
}

.btn{
  background:#000;
  border:1px solid #333;
  color:#fff;
  padding:12px 24px;
  font-size:16px;
  font-weight:300;
  letter-spacing:0.05em;
  cursor:pointer;
  text-decoration:none;
  display:inline-block;
  transition:border-color 0.2s;
}

.btn:hover{
  border-color:#666;
}

.actions{
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:center;
}

#gameView, #finishView{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:20px;
  width:100%;
}

.finishTime{
  font-size:48px;
  font-weight:300;
  letter-spacing:0.1em;
  font-variant-numeric:tabular-nums;
}

.finishLevel{
  font-size:14px;
  font-weight:300;
  letter-spacing:0.15em;
  color:#999;
  text-transform:uppercase;
}

.finishThumbs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:center;
  max-width:500px;
}

.finishThumb{
  width:60px;
  height:60px;
  object-fit:cover;
  border:1px solid #333;
}

.hint{
  margin-top:20px;
  padding:12px;
  border:1px solid #333;
  color:#999;
  font-size:14px;
  text-align:center;
}

.srOnly{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}


.foundList{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  justify-content:center;
  margin:10px 0;
}

.foundTile{
  width:40px;
  height:40px;
  background-color:#111;
  background-image:var(--img, none);
  background-size:cover;
  background-position:center;
  border:1px solid #333;
}

@media (max-width: 600px){
  .fragment{height:300px}
  .timer{font-size:24px}
  .progress{font-size:16px}
  .finishTime{font-size:36px}
  .foundTile{width:32px;height:32px}
}
